• Roman Alifanov's avatar
    Add optional static typing with TypeScript-style syntax · 5121e024
    Roman Alifanov authored
    - Add TypeAnnotation AST node for type annotations
    - Add ClassField dataclass for typed class fields
    - Extend Parameter, FunctionDecl, Assignment with type_annotation field
    - Add type parsing: parse_type(), parse_type_annotation(), parse_function_type()
    - Support types: string, int, float, bool, any, void, T[], dict[K,V], classes, (A) => B
    - Add type checking at compile time with configurable error handling
    - Add --no-type-check and --warn-types CLI flags
    - Fix callback variable calls (prioritize callback_vars, use $() capture)
    - Document closure limitation (lambdas can't capture outer variables)
    - Add 28 new tests for typing and callbacks (279 total)
    5121e024
Name
Last commit
Last update
bootstrap Loading commit data...
examples Loading commit data...
lib Loading commit data...
tests Loading commit data...
LANGUAGE_SPEC.md Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
README_ru.md Loading commit data...
content Loading commit data...