diff options
author | Thomas Lively <tlively@google.com> | 2024-02-20 13:08:37 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-20 13:08:37 -0800 |
commit | c0cdd267492956e9789148c8e478c467dd59d67b (patch) | |
tree | ce57c212b27345b4957c538d1c51ef2fbd3b8dac /src/support/string.cpp | |
parent | a9f01c0c911afabc86dfc210f3ea596f1c35de6e (diff) | |
download | binaryen-c0cdd267492956e9789148c8e478c467dd59d67b.tar.gz binaryen-c0cdd267492956e9789148c8e478c467dd59d67b.tar.bz2 binaryen-c0cdd267492956e9789148c8e478c467dd59d67b.zip |
[Parser] Simplify the lexer interface (#6319)
The lexer was previously an iterator over tokens, but that expressivity is not
actually used in the parser. Instead, we have `input.h` that adapts the token
iterator interface into an iterface that is actually useful.
As a first step toward simplifying the lexer implementation to no longer be an
iterator over tokens, update its interface by moving the adaptation from input.h
to the lexer itself. This requires extensive changes to the lexer unit tests,
which will not have to change further when we actually simplify the lexer
implementation.
Diffstat (limited to 'src/support/string.cpp')
0 files changed, 0 insertions, 0 deletions