feat: improved parsing and regression test suite

This commit is contained in:
Brett Broadhurst 2026-02-27 18:07:02 -07:00
parent 4ebdd3c66e
commit 619eb3b338
Failed to generate hash of commit
39 changed files with 1116 additions and 339 deletions

View file

@ -0,0 +1,13 @@
// RUN: %ink-compiler --stdin --compile-only --dump-ast < %s | FileCheck %s
// CHECK: File "<STDIN>"
// CHECK-NEXT: `--BlockStmt <line:12, line:13>
// CHECK-NEXT: |--TempDecl <line:12, col:3:15>
// CHECK-NEXT: | |--Identifier `a` <col:8, col:9>
// CHECK-NEXT: | `--NumberLiteral `123` <col:12, col:15>
// CHECK-NEXT: `--AssignStmt <line:13, col:3:10>
// CHECK-NEXT: |--Identifier `a` <col:3, col:4>
// CHECK-NEXT: `--NumberLiteral `321` <col:7, col:10>
~ temp a = 123
~ a = 321