summaryrefslogtreecommitdiff
path: root/scripts/gen-emscripten-exported-json.py
diff options
context:
space:
mode:
authorBen Smith <binjimin@gmail.com>2017-08-15 14:36:20 -0700
committerGitHub <noreply@github.com>2017-08-15 14:36:20 -0700
commit3d3920f6d9388c46af6725dabb34d98752958d8d (patch)
treecf77acb6d4140b2fb791f91d4af38d59ad8f66a3 /scripts/gen-emscripten-exported-json.py
parent68e8642fea319253466bb3bddece75306f808a69 (diff)
downloadwabt-3d3920f6d9388c46af6725dabb34d98752958d8d.tar.gz
wabt-3d3920f6d9388c46af6725dabb34d98752958d8d.tar.bz2
wabt-3d3920f6d9388c46af6725dabb34d98752958d8d.zip
Rewrite parser as recursive descent (#591)
* Remove Bison dependency * Remove pre-generated parser files * Rename build config from no-re2c-bison to no-re2c * Add a simple make_unique implementation * Move handling of module bindings into ir.cc * Simplify lexer - Remove lookahead, the parser handles this now - Unify Token/LexerToken, it only contains terminal values now - Refactor setting token type and value into one function (e.g. LITERAL, RETURN => RETURN_LITERAL) * New Parser - Uses two tokens of lookahead (use Peek(0) or Peek(1)) - Consume() consumes one token of any kind - Match(t) consumes the current token if it matches - PeekMatch(t) returns true iff the token matches, but doesn't consume - Basic error synchronization; plenty of room for improvement here
Diffstat (limited to 'scripts/gen-emscripten-exported-json.py')
0 files changed, 0 insertions, 0 deletions