Spaces:
Sleeping
Sleeping
Download src/__init__.py from Kacemath/cl-compiler: direct link, hf CLI and curl.
- Browser
- Download file 616 Bytes
-
https://huggingface.co/spaces/Kacemath/cl-compiler/resolve/main/src/__init__.py
- Command line
-
hf download hf://spaces/Kacemath/cl-compiler/src/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/Kacemath/cl-compiler/resolve/main/src/__init__.py
616 Bytes
| from .lexer import Lexer, Token, TokenType, LexerError | |
| from .parser import Parser, ParseError | |
| from .ast_nodes import ( | |
| ProgramNode, DeclNode, AssignNode, IfNode, | |
| WhileNode, ForNode, BlockNode, BinOpNode, UnaryOpNode, | |
| IdentNode, NumNode, StringNode, | |
| ) | |
| from .semantic import SemanticAnalyzer, SemanticError | |
| __all__ = [ | |
| "Lexer", "Token", "TokenType", "LexerError", | |
| "Parser", "ParseError", | |
| "ProgramNode", "DeclNode", "AssignNode", "IfNode", | |
| "WhileNode", "ForNode", "BlockNode", "BinOpNode", "UnaryOpNode", | |
| "IdentNode", "NumNode", "StringNode", | |
| "SemanticAnalyzer", "SemanticError", | |
| ] | |