https://github.com/nejcc/ice
Ice programing
https://github.com/nejcc/ice
ice interpreter lexer parser python
Last synced: 5 months ago
JSON representation
Ice programing
- Host: GitHub
- URL: https://github.com/nejcc/ice
- Owner: Nejcc
- Created: 2024-09-16T18:13:52.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-09-16T18:29:27.000Z (over 1 year ago)
- Last Synced: 2025-08-29T09:12:48.114Z (10 months ago)
- Topics: ice, interpreter, lexer, parser, python
- Language: Python
- Homepage:
- Size: 21.5 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
run:
```
python -m src.cli run examples/hello_world.ice
```
Tree
```
ice-language/
├── src/
│ ├── __init__.py # Makes 'src' a Python package
│ ├── cli.py # CLI tool for handling commands
│ ├── lexer.py # Lexer: Tokenizes the source code
│ ├── parser.py # Parser: Creates AST from tokens
│ ├── interpreter.py # Interpreter: Executes the AST
│ ├── compiler.py # Compiler: Compiles the AST into machine code or intermediate representation
│ ├── runtime/
│ │ └── runtime.py # Handles memory management, function calls, etc.
│ └── stdlib/
│ ├── io.ice # IO functions
│ ├── math.ice # Math functions
│ └── string.ice # String manipulation functions
├── examples/
│ ├── hello_world.ice # Example ICE program
│ ├── test.ice # Another example program for testing
│ └── more_examples/
├── tests/
│ ├── lexer_test.py # Tests for lexer
│ ├── parser_test.py # Tests for parser
│ ├── interpreter_test.py # Tests for interpreter
│ └── compiler_test.py # Tests for compiler
├── build/
│ ├── output/ # Compiled output files
│ └── cache/ # Cache for intermediate files or compilation data
├── docs/
│ ├── language_spec.md # Language specifications
│ └── user_guide.md # User guide for ICE language
└── README.md # Readme file
```