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/conditional-simple-if.ink
Normal file
16
testing/regression/syntax/conditional-simple-if.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:14, line:16>
|
||||
// CHECK-NEXT: `--ContentStmt <line:14, col:1:27>
|
||||
// CHECK-NEXT: `--Content <col:1, col:27>
|
||||
// CHECK-NEXT: `--IfStmt <line:14, line:16>
|
||||
// CHECK-NEXT: |--TrueLiteral <col:2, col:6>
|
||||
// CHECK-NEXT: `--BlockStmt <line:15, line:15>
|
||||
// CHECK-NEXT: `--ContentStmt <line:15, col:5:18>
|
||||
// CHECK-NEXT: `--Content <col:5, col:18>
|
||||
// CHECK-NEXT: `--StringLiteral `Hello, world!` <col:5, col:18>
|
||||
|
||||
{true:
|
||||
Hello, world!
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue