1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-02-14 12:12:21 +00:00
ton/tolk-tester
tolk-vm 989629a832
[Tolk] Compiler built-in __expect_type() for testing purposes
Currently, tolk-tester can test various "output" of the compiler:
pass input and check output, validate fif codegen, etc.
But it can not test compiler internals and AST representation.

I've added an ability to have special functions to check/expose
internal compiler state. The first (and the only now) is:
> __expect_type(some_expr, "<type>");
Such a call has special treatment in a compilation process.
Compilation fails if this expression doesn't have requested type.

It's intended to be used in tests only. Not present in stdlib.
2025-01-27 15:30:21 +03:00
..
tests [Tolk] Compiler built-in __expect_type() for testing purposes 2025-01-27 15:30:21 +03:00
tolk-tester.js [Tolk] AST-based semantic analysis, get rid of Expr 2025-01-13 20:28:44 +07:00
tolk-tester.py [Tolk] AST-based semantic analysis, get rid of Expr 2025-01-13 20:28:44 +07:00