diff options
author | Ben Smith <binjimin@gmail.com> | 2017-08-15 14:36:20 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-15 14:36:20 -0700 |
commit | 3d3920f6d9388c46af6725dabb34d98752958d8d (patch) | |
tree | cf77acb6d4140b2fb791f91d4af38d59ad8f66a3 /test/spec/memory.txt | |
parent | 68e8642fea319253466bb3bddece75306f808a69 (diff) | |
download | wabt-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/spec/memory.txt')
-rw-r--r-- | test/spec/memory.txt | 100 |
1 files changed, 20 insertions, 80 deletions
diff --git a/test/spec/memory.txt b/test/spec/memory.txt index ac09f8f4..51c9cbed 100644 --- a/test/spec/memory.txt +++ b/test/spec/memory.txt @@ -107,144 +107,84 @@ out/third_party/testsuite/memory.wast:198: assert_invalid passed: error: alignment must not be larger than natural alignment (1) 0000023: error: OnStoreExpr callback failed out/third_party/testsuite/memory.wast:390: assert_malformed passed: - out/third_party/testsuite/memory/memory.63.wast:1:43: error: unexpected token "i32.load32" + out/third_party/testsuite/memory/memory.63.wast:1:43: error: unexpected token "i32.load32", expected an instr. (memory 1)(func (param i32) (result i32) (i32.load32 (get_local 0))) ^^^^^^^^^^ - out/third_party/testsuite/memory/memory.63.wast:1:54: error: syntax error, unexpected ( - (memory 1)(func (param i32) (result i32) (i32.load32 (get_local 0))) - ^ out/third_party/testsuite/memory.wast:397: assert_malformed passed: - out/third_party/testsuite/memory/memory.64.wast:1:43: error: unexpected token "i32.load32_u" + out/third_party/testsuite/memory/memory.64.wast:1:43: error: unexpected token "i32.load32_u", expected an instr. (memory 1)(func (param i32) (result i32) (i32.load32_u (get_local 0))) ^^^^^^^^^^^^ - out/third_party/testsuite/memory/memory.64.wast:1:56: error: syntax error, unexpected ( - (memory 1)(func (param i32) (result i32) (i32.load32_u (get_local 0))) - ^ out/third_party/testsuite/memory.wast:404: assert_malformed passed: - out/third_party/testsuite/memory/memory.65.wast:1:43: error: unexpected token "i32.load32_s" + out/third_party/testsuite/memory/memory.65.wast:1:43: error: unexpected token "i32.load32_s", expected an instr. (memory 1)(func (param i32) (result i32) (i32.load32_s (get_local 0))) ^^^^^^^^^^^^ - out/third_party/testsuite/memory/memory.65.wast:1:56: error: syntax error, unexpected ( - (memory 1)(func (param i32) (result i32) (i32.load32_s (get_local 0))) - ^ out/third_party/testsuite/memory.wast:411: assert_malformed passed: - out/third_party/testsuite/memory/memory.66.wast:1:43: error: unexpected token "i32.load64" + out/third_party/testsuite/memory/memory.66.wast:1:43: error: unexpected token "i32.load64", expected an instr. (memory 1)(func (param i32) (result i32) (i32.load64 (get_local 0))) ^^^^^^^^^^ - out/third_party/testsuite/memory/memory.66.wast:1:54: error: syntax error, unexpected ( - (memory 1)(func (param i32) (result i32) (i32.load64 (get_local 0))) - ^ out/third_party/testsuite/memory.wast:418: assert_malformed passed: - out/third_party/testsuite/memory/memory.67.wast:1:43: error: unexpected token "i32.load64_u" + out/third_party/testsuite/memory/memory.67.wast:1:43: error: unexpected token "i32.load64_u", expected an instr. (memory 1)(func (param i32) (result i32) (i32.load64_u (get_local 0))) ^^^^^^^^^^^^ - out/third_party/testsuite/memory/memory.67.wast:1:56: error: syntax error, unexpected ( - (memory 1)(func (param i32) (result i32) (i32.load64_u (get_local 0))) - ^ out/third_party/testsuite/memory.wast:425: assert_malformed passed: - out/third_party/testsuite/memory/memory.68.wast:1:43: error: unexpected token "i32.load64_s" + out/third_party/testsuite/memory/memory.68.wast:1:43: error: unexpected token "i32.load64_s", expected an instr. (memory 1)(func (param i32) (result i32) (i32.load64_s (get_local 0))) ^^^^^^^^^^^^ - out/third_party/testsuite/memory/memory.68.wast:1:56: error: syntax error, unexpected ( - (memory 1)(func (param i32) (result i32) (i32.load64_s (get_local 0))) - ^ out/third_party/testsuite/memory.wast:432: assert_malformed passed: - out/third_party/testsuite/memory/memory.69.wast:1:30: error: unexpected token "i32.store32" + out/third_party/testsuite/memory/memory.69.wast:1:30: error: unexpected token "i32.store32", expected an instr. (memory 1)(func (param i32) (i32.store32 (get_local 0) (i32.const 0))) ^^^^^^^^^^^ - out/third_party/testsuite/memory/memory.69.wast:1:42: error: syntax error, unexpected ( - (memory 1)(func (param i32) (i32.store32 (get_local 0) (i32.const 0))) - ^ out/third_party/testsuite/memory.wast:439: assert_malformed passed: - out/third_party/testsuite/memory/memory.70.wast:1:30: error: unexpected token "i32.store64" + out/third_party/testsuite/memory/memory.70.wast:1:30: error: unexpected token "i32.store64", expected an instr. (memory 1)(func (param i32) (i32.store64 (get_local 0) (i64.const 0))) ^^^^^^^^^^^ - out/third_party/testsuite/memory/memory.70.wast:1:42: error: syntax error, unexpected ( - (memory 1)(func (param i32) (i32.store64 (get_local 0) (i64.const 0))) - ^ out/third_party/testsuite/memory.wast:447: assert_malformed passed: - out/third_party/testsuite/memory/memory.71.wast:1:43: error: unexpected token "i64.load64" + out/third_party/testsuite/memory/memory.71.wast:1:43: error: unexpected token "i64.load64", expected an instr. (memory 1)(func (param i32) (result i64) (i64.load64 (get_local 0))) ^^^^^^^^^^ - out/third_party/testsuite/memory/memory.71.wast:1:54: error: syntax error, unexpected ( - (memory 1)(func (param i32) (result i64) (i64.load64 (get_local 0))) - ^ out/third_party/testsuite/memory.wast:454: assert_malformed passed: - out/third_party/testsuite/memory/memory.72.wast:1:43: error: unexpected token "i64.load64_u" + out/third_party/testsuite/memory/memory.72.wast:1:43: error: unexpected token "i64.load64_u", expected an instr. (memory 1)(func (param i32) (result i64) (i64.load64_u (get_local 0))) ^^^^^^^^^^^^ - out/third_party/testsuite/memory/memory.72.wast:1:56: error: syntax error, unexpected ( - (memory 1)(func (param i32) (result i64) (i64.load64_u (get_local 0))) - ^ out/third_party/testsuite/memory.wast:461: assert_malformed passed: - out/third_party/testsuite/memory/memory.73.wast:1:43: error: unexpected token "i64.load64_s" + out/third_party/testsuite/memory/memory.73.wast:1:43: error: unexpected token "i64.load64_s", expected an instr. (memory 1)(func (param i32) (result i64) (i64.load64_s (get_local 0))) ^^^^^^^^^^^^ - out/third_party/testsuite/memory/memory.73.wast:1:56: error: syntax error, unexpected ( - (memory 1)(func (param i32) (result i64) (i64.load64_s (get_local 0))) - ^ out/third_party/testsuite/memory.wast:468: assert_malformed passed: - out/third_party/testsuite/memory/memory.74.wast:1:30: error: unexpected token "i64.store64" + out/third_party/testsuite/memory/memory.74.wast:1:30: error: unexpected token "i64.store64", expected an instr. (memory 1)(func (param i32) (i64.store64 (get_local 0) (i64.const 0))) ^^^^^^^^^^^ - out/third_party/testsuite/memory/memory.74.wast:1:42: error: syntax error, unexpected ( - (memory 1)(func (param i32) (i64.store64 (get_local 0) (i64.const 0))) - ^ out/third_party/testsuite/memory.wast:476: assert_malformed passed: - out/third_party/testsuite/memory/memory.75.wast:1:43: error: unexpected token "f32.load32" + out/third_party/testsuite/memory/memory.75.wast:1:43: error: unexpected token "f32.load32", expected an instr. (memory 1)(func (param i32) (result f32) (f32.load32 (get_local 0))) ^^^^^^^^^^ - out/third_party/testsuite/memory/memory.75.wast:1:54: error: syntax error, unexpected ( - (memory 1)(func (param i32) (result f32) (f32.load32 (get_local 0))) - ^ out/third_party/testsuite/memory.wast:483: assert_malformed passed: - out/third_party/testsuite/memory/memory.76.wast:1:43: error: unexpected token "f32.load64" + out/third_party/testsuite/memory/memory.76.wast:1:43: error: unexpected token "f32.load64", expected an instr. (memory 1)(func (param i32) (result f32) (f32.load64 (get_local 0))) ^^^^^^^^^^ - out/third_party/testsuite/memory/memory.76.wast:1:54: error: syntax error, unexpected ( - (memory 1)(func (param i32) (result f32) (f32.load64 (get_local 0))) - ^ out/third_party/testsuite/memory.wast:490: assert_malformed passed: - out/third_party/testsuite/memory/memory.77.wast:1:30: error: unexpected token "f32.store32" + out/third_party/testsuite/memory/memory.77.wast:1:30: error: unexpected token "f32.store32", expected an instr. (memory 1)(func (param i32) (f32.store32 (get_local 0) (f32.const 0))) ^^^^^^^^^^^ - out/third_party/testsuite/memory/memory.77.wast:1:42: error: syntax error, unexpected ( - (memory 1)(func (param i32) (f32.store32 (get_local 0) (f32.const 0))) - ^ out/third_party/testsuite/memory.wast:497: assert_malformed passed: - out/third_party/testsuite/memory/memory.78.wast:1:30: error: unexpected token "f32.store64" + out/third_party/testsuite/memory/memory.78.wast:1:30: error: unexpected token "f32.store64", expected an instr. (memory 1)(func (param i32) (f32.store64 (get_local 0) (f64.const 0))) ^^^^^^^^^^^ - out/third_party/testsuite/memory/memory.78.wast:1:42: error: syntax error, unexpected ( - (memory 1)(func (param i32) (f32.store64 (get_local 0) (f64.const 0))) - ^ out/third_party/testsuite/memory.wast:505: assert_malformed passed: - out/third_party/testsuite/memory/memory.79.wast:1:43: error: unexpected token "f64.load32" + out/third_party/testsuite/memory/memory.79.wast:1:43: error: unexpected token "f64.load32", expected an instr. (memory 1)(func (param i32) (result f64) (f64.load32 (get_local 0))) ^^^^^^^^^^ - out/third_party/testsuite/memory/memory.79.wast:1:54: error: syntax error, unexpected ( - (memory 1)(func (param i32) (result f64) (f64.load32 (get_local 0))) - ^ out/third_party/testsuite/memory.wast:512: assert_malformed passed: - out/third_party/testsuite/memory/memory.80.wast:1:43: error: unexpected token "f64.load64" + out/third_party/testsuite/memory/memory.80.wast:1:43: error: unexpected token "f64.load64", expected an instr. (memory 1)(func (param i32) (result f64) (f64.load64 (get_local 0))) ^^^^^^^^^^ - out/third_party/testsuite/memory/memory.80.wast:1:54: error: syntax error, unexpected ( - (memory 1)(func (param i32) (result f64) (f64.load64 (get_local 0))) - ^ out/third_party/testsuite/memory.wast:519: assert_malformed passed: - out/third_party/testsuite/memory/memory.81.wast:1:30: error: unexpected token "f64.store32" + out/third_party/testsuite/memory/memory.81.wast:1:30: error: unexpected token "f64.store32", expected an instr. (memory 1)(func (param i32) (f64.store32 (get_local 0) (f32.const 0))) ^^^^^^^^^^^ - out/third_party/testsuite/memory/memory.81.wast:1:42: error: syntax error, unexpected ( - (memory 1)(func (param i32) (f64.store32 (get_local 0) (f32.const 0))) - ^ out/third_party/testsuite/memory.wast:526: assert_malformed passed: - out/third_party/testsuite/memory/memory.82.wast:1:30: error: unexpected token "f64.store64" + out/third_party/testsuite/memory/memory.82.wast:1:30: error: unexpected token "f64.store64", expected an instr. (memory 1)(func (param i32) (f64.store64 (get_local 0) (f64.const 0))) ^^^^^^^^^^^ - out/third_party/testsuite/memory/memory.82.wast:1:42: error: syntax error, unexpected ( - (memory 1)(func (param i32) (f64.store64 (get_local 0) (f64.const 0))) - ^ 106/106 tests passed. ;;; STDOUT ;;) |