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
17
testing/regression/syntax/nested-stitch.ink
Normal file
17
testing/regression/syntax/nested-stitch.ink
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
// RUN: %ink-compiler --stdin --compile-only --dump-ast < %s | FileCheck %s
|
||||
|
||||
// CHECK: File "<STDIN>"
|
||||
// CHECK-NEXT: `--KnotDecl <line:15, line:17>
|
||||
// CHECK-NEXT: |--KnotProto <col:1, col:13>
|
||||
// CHECK-NEXT: | `--Identifier `knot` <col:5, col:9>
|
||||
// CHECK-NEXT: `--StitchDecl <line:16, line:17>
|
||||
// CHECK-NEXT: |--StitchProto <col:1, col:9>
|
||||
// CHECK-NEXT: | `--Identifier `stitch` <col:3, col:9>
|
||||
// CHECK-NEXT: `--BlockStmt <line:17, line:17>
|
||||
// CHECK-NEXT: `--ContentStmt <line:17, col:1:14>
|
||||
// CHECK-NEXT: `--Content <col:1, col:14>
|
||||
// CHECK-NEXT: `--StringLiteral `Hello, world!` <col:1, col:14>
|
||||
|
||||
=== knot ===
|
||||
= stitch
|
||||
Hello, world!
|
||||
Loading…
Add table
Add a link
Reference in a new issue