feat: improved parsing and regression test suite
This commit is contained in:
parent
4ebdd3c66e
commit
619eb3b338
39 changed files with 1116 additions and 339 deletions
16
testing/regression/syntax/expression-statement.ink
Normal file
16
testing/regression/syntax/expression-statement.ink
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
// RUN: %ink-compiler --stdin --compile-only --dump-ast < %s | FileCheck %s
|
||||
|
||||
// CHECK: File "<STDIN>"
|
||||
// CHECK-NEXT: `--BlockStmt <line:16, line:16>
|
||||
// CHECK-NEXT: `--ExprStmt <line:16, col:3:20>
|
||||
// CHECK-NEXT: `--SubtractExpr <col:4, col:20>
|
||||
// CHECK-NEXT: |--MultiplyExpr <col:4, col:15>
|
||||
// CHECK-NEXT: | |--AddExpr <col:4, col:10>
|
||||
// CHECK-NEXT: | | |--NegateExpr <col:4, col:6>
|
||||
// CHECK-NEXT: | | | `--NumberLiteral `1` <col:5, col:6>
|
||||
// CHECK-NEXT: | | `--NumberLiteral `2` <col:9, col:10>
|
||||
// CHECK-NEXT: | `--NumberLiteral `3` <col:14, col:15>
|
||||
// CHECK-NEXT: `--NegateExpr <col:18, col:20>
|
||||
// CHECK-NEXT: `--NumberLiteral `4` <col:19, col:20>
|
||||
|
||||
~ (-1 + 2) * 3 - -4
|
||||
Loading…
Add table
Add a link
Reference in a new issue