This PR implements a basic syntax for type annotation and type definitions
It adds adds basic lexers and parsers, adapted from the Crafting Interpreters book by Robert Nystrom, more specifically from my previous Python implementation
This is still a prototype and the syntax / implementation will change
This PR implements a basic syntax for type annotation and type definitions
It adds adds basic lexers and parsers, adapted from the [_Crafting Interpreters_][1] book by Robert Nystrom, more specifically from my [previous Python implementation][2]
This is still a prototype and the syntax / implementation **will** change
[1]: https://craftinginterpreters.com/
[2]: https://git.kb28.ch/HEL/pebble
refactored the messy AST printer impletation with Claude to use a context manager, an enum and extract common functions
Co-authored-by: Claude <noreply@anthropic.com>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
This PR implements a basic syntax for type annotation and type definitions
It adds adds basic lexers and parsers, adapted from the Crafting Interpreters book by Robert Nystrom, more specifically from my previous Python implementation
This is still a prototype and the syntax / implementation will change