Differences From Artifact [d13d3009df]:
- File bs/empathy.cpp — part of check-in [a9ae189d74] at 2019-01-13 15:59:14 on branch trunk — Lexer: added some throw away test code, fixed a couple of bugs. (user: achavasse size: 710)
To Artifact [5259496552]:
- File bs/empathy.cpp — part of check-in [0ecc93dff5] at 2019-01-13 16:24:54 on branch trunk — Lexer: fix token locations. (user: achavasse size: 737)
| ︙ | ︙ | |||
23 24 25 26 27 28 29 |
while( !lex.eos() )
{
auto tok = lex.consume();
if( !tok )
break;
| | | 23 24 25 26 27 28 29 30 31 32 33 34 |
while( !lex.eos() )
{
auto tok = lex.consume();
if( !tok )
break;
cout << tok->location() << " " << *tok << endl;
}
return EXIT_SUCCESS;
}
|