1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-02-12 11:12:16 +00:00
ton/tolk
tolk-vm 7a1602f591
[Tolk] Support syntax tensorVar.0 and tupleVar.0
It works both for reading and writing:
> var t = (1, 2);
> t.0;      // 1
> t.0 = 5;
> t;        // (5, 2)

It also works for typed/untyped tuples, producing INDEX and SETINDEX.

Global tensors and tuples works. Nesting `t.0.1.2` works. `mutate` works.
Even mixing tuples inside tensors inside a global for writing works.
2025-01-27 15:30:21 +03:00
..
abscode.cpp [Tolk] Support syntax tensorVar.0 and tupleVar.0 2025-01-27 15:30:21 +03:00
analyzer.cpp [Tolk] Refactor: get rid of split_vars, construct valid LET ops 2025-01-27 15:30:21 +03:00
asmops.cpp [Tolk] Support syntax tensorVar.0 and tupleVar.0 2025-01-27 15:30:21 +03:00
ast-from-tokens.cpp [Tolk] Support syntax tensorVar.0 and tupleVar.0 2025-01-27 15:30:21 +03:00
ast-from-tokens.h [Tolk] AST-based semantic analysis, get rid of Expr 2025-01-13 20:28:44 +07:00
ast-replacer.h [Tolk] Rewrite the type system from Hindley-Milner to static typing 2025-01-15 15:38:43 +03:00
ast-replicator.h [Tolk] Rewrite the type system from Hindley-Milner to static typing 2025-01-15 15:38:43 +03:00
ast-stringifier.h [Tolk] Rewrite the type system from Hindley-Milner to static typing 2025-01-15 15:38:43 +03:00
ast-visitor.h [Tolk] Rewrite the type system from Hindley-Milner to static typing 2025-01-15 15:38:43 +03:00
ast.cpp [Tolk] Rewrite the type system from Hindley-Milner to static typing 2025-01-15 15:38:43 +03:00
ast.h [Tolk] Support syntax tensorVar.0 and tupleVar.0 2025-01-27 15:30:21 +03:00
builtins.cpp [Tolk] Support syntax tensorVar.0 and tupleVar.0 2025-01-27 15:30:21 +03:00
CMakeLists.txt [Tolk] bool type (-1/0 int under the hood) 2025-01-15 15:38:47 +03:00
codegen.cpp [Tolk] Support syntax tensorVar.0 and tupleVar.0 2025-01-27 15:30:21 +03:00
compiler-state.cpp [Tolk] Rewrite the type system from Hindley-Milner to static typing 2025-01-15 15:38:43 +03:00
compiler-state.h [Tolk] Rewrite the type system from Hindley-Milner to static typing 2025-01-15 15:38:43 +03:00
constant-evaluator.cpp [Tolk] Rewrite the type system from Hindley-Milner to static typing 2025-01-15 15:38:43 +03:00
constant-evaluator.h [Tolk] AST-based semantic analysis, get rid of Expr 2025-01-13 20:28:44 +07:00
fwd-declarations.h [Tolk] Rewrite the type system from Hindley-Milner to static typing 2025-01-15 15:38:43 +03:00
generics-helpers.cpp [Tolk] Refactor: get rid of split_vars, construct valid LET ops 2025-01-27 15:30:21 +03:00
generics-helpers.h [Tolk] Rewrite the type system from Hindley-Milner to static typing 2025-01-15 15:38:43 +03:00
lexer.cpp [Tolk] Compiler built-in __expect_type() for testing purposes 2025-01-27 15:30:21 +03:00
lexer.h [Tolk] Compiler built-in __expect_type() for testing purposes 2025-01-27 15:30:21 +03:00
optimize.cpp [Tolk] Embedded stdlib.tolk, CompilerState, strict includes 2024-11-02 01:33:08 +04:00
pipe-ast-to-legacy.cpp [Tolk] Support syntax tensorVar.0 and tupleVar.0 2025-01-27 15:30:21 +03:00
pipe-calc-rvalue-lvalue.cpp [Tolk] Rewrite the type system from Hindley-Milner to static typing 2025-01-15 15:38:43 +03:00
pipe-check-pure-impure.cpp [Tolk] Rewrite the type system from Hindley-Milner to static typing 2025-01-15 15:38:43 +03:00
pipe-check-rvalue-lvalue.cpp [Tolk] Support syntax tensorVar.0 and tupleVar.0 2025-01-27 15:30:21 +03:00
pipe-constant-folding.cpp [Tolk] bool type (-1/0 int under the hood) 2025-01-15 15:38:47 +03:00
pipe-detect-unreachable.cpp [Tolk] Rewrite the type system from Hindley-Milner to static typing 2025-01-15 15:38:43 +03:00
pipe-discover-parse-sources.cpp [Tolk] Rewrite the type system from Hindley-Milner to static typing 2025-01-15 15:38:43 +03:00
pipe-find-unused-symbols.cpp [Tolk] Rewrite the type system from Hindley-Milner to static typing 2025-01-15 15:38:43 +03:00
pipe-generate-fif-output.cpp [Tolk] Refactor: get rid of split_vars, construct valid LET ops 2025-01-27 15:30:21 +03:00
pipe-infer-types-and-calls.cpp [Tolk] Support syntax tensorVar.0 and tupleVar.0 2025-01-27 15:30:21 +03:00
pipe-optimize-boolean-expr.cpp [Tolk] bool type (-1/0 int under the hood) 2025-01-15 15:38:47 +03:00
pipe-refine-lvalue-for-mutate.cpp [Tolk] Refactor: get rid of split_vars, construct valid LET ops 2025-01-27 15:30:21 +03:00
pipe-register-symbols.cpp [Tolk] Rewrite the type system from Hindley-Milner to static typing 2025-01-15 15:38:43 +03:00
pipe-resolve-identifiers.cpp [Tolk] bool type (-1/0 int under the hood) 2025-01-15 15:38:47 +03:00
pipeline.h [Tolk] bool type (-1/0 int under the hood) 2025-01-15 15:38:47 +03:00
platform-utils.h [Tolk] Rewrite the type system from Hindley-Milner to static typing 2025-01-15 15:38:43 +03:00
src-file.cpp [Tolk] Rewrite the type system from Hindley-Milner to static typing 2025-01-15 15:38:43 +03:00
src-file.h [Tolk] Rewrite the type system from Hindley-Milner to static typing 2025-01-15 15:38:43 +03:00
stack-transform.cpp [Tolk] Initial commit of TOLK Language: fork all sources from FunC 2024-11-02 01:33:08 +04:00
symtable.cpp [Tolk] Refactor: get rid of split_vars, construct valid LET ops 2025-01-27 15:30:21 +03:00
symtable.h [Tolk] Refactor: get rid of split_vars, construct valid LET ops 2025-01-27 15:30:21 +03:00
tolk-main.cpp [Tolk] Completely rework stdlib: multiple files and renaming 2024-11-02 03:44:13 +04:00
tolk-version.h [Tolk] Bump version to v0.7 2025-01-15 15:38:47 +03:00
tolk-wasm.cpp [Tolk] Completely rework stdlib: multiple files and renaming 2024-11-02 03:44:13 +04:00
tolk.cpp [Tolk] bool type (-1/0 int under the hood) 2025-01-15 15:38:47 +03:00
tolk.h [Tolk] Support syntax tensorVar.0 and tupleVar.0 2025-01-27 15:30:21 +03:00
type-system.cpp [Tolk] Refactor: get rid of split_vars, construct valid LET ops 2025-01-27 15:30:21 +03:00
type-system.h [Tolk] Refactor: get rid of split_vars, construct valid LET ops 2025-01-27 15:30:21 +03:00