summaryrefslogtreecommitdiff
path: root/test/parse/bad-error-long-token.txt
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 /test/parse/bad-error-long-token.txt
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 'test/parse/bad-error-long-token.txt')
-rw-r--r--test/parse/bad-error-long-token.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parse/bad-error-long-token.txt b/test/parse/bad-error-long-token.txt
index fce3fd2c..5236637d 100644
--- a/test/parse/bad-error-long-token.txt
+++ b/test/parse/bad-error-long-token.txt
@@ -1,7 +1,7 @@
;;; ERROR: 1
abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz
(;; STDERR ;;;
-out/test/parse/bad-error-long-token.txt:2:15: error: unexpected token "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz"
+out/test/parse/bad-error-long-token.txt:2:15: error: unexpected token "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz", expected a module field or a command.
abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijk...
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
;;; STDERR ;;)