diff options
author | Ben Smith <binjimin@gmail.com> | 2017-06-02 13:35:24 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-02 13:35:24 -0700 |
commit | 3c6c7a83c5bcf4f6654d4646652ace2c1468f0fb (patch) | |
tree | e595fdac4cfb86796b50db01f0a807a451b1cfcb /src/binary-reader-interpreter.cc | |
parent | c37a2d912e83f9298c64c61e1e92aff8042566e1 (diff) | |
download | wabt-3c6c7a83c5bcf4f6654d4646652ace2c1468f0fb.tar.gz wabt-3c6c7a83c5bcf4f6654d4646652ace2c1468f0fb.tar.bz2 wabt-3c6c7a83c5bcf4f6654d4646652ace2c1468f0fb.zip |
Cleanup Lexer (#466)
* Add class LexerSource: it encapsulates reading data from a source,
either buffer or file.
* Add class LexerSourceLineFinder: it uses a LexerSource to read a line
from the source for displaying in errors. It lazily caches line
numbers -> file offsets, so no work is done unless an error occurs.
* Make WastLexer a class instead of a struct.
Diffstat (limited to 'src/binary-reader-interpreter.cc')
0 files changed, 0 insertions, 0 deletions