https://github.com/guillep/astinterpreter
Basic AST interpreter for Pharo
https://github.com/guillep/astinterpreter
Last synced: about 2 months ago
JSON representation
Basic AST interpreter for Pharo
- Host: GitHub
- URL: https://github.com/guillep/astinterpreter
- Owner: guillep
- Created: 2019-03-15T13:32:21.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-22T11:53:03.000Z (almost 7 years ago)
- Last Synced: 2025-04-05T14:43:57.344Z (11 months ago)
- Language: Smalltalk
- Size: 25.4 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ASTInterpreter
Basic AST interpreter for Pharo
## Example
```smalltalk
interpreter := ASTInterpreter new.
context := AIRootContext new.
interpreter resetContext: context.
compiledCode := interpreter compile: '1+1'.
interpreter interpretDoIt: compiledCode.
```