Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zhuangqh/kaleidoscope-plus
A toy compiler
https://github.com/zhuangqh/kaleidoscope-plus
domain-specific-language llvm
Last synced: about 1 month ago
JSON representation
A toy compiler
- Host: GitHub
- URL: https://github.com/zhuangqh/kaleidoscope-plus
- Owner: zhuangqh
- Created: 2016-12-18T08:29:57.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-12-23T02:53:27.000Z (about 8 years ago)
- Last Synced: 2024-11-07T09:46:49.416Z (3 months ago)
- Topics: domain-specific-language, llvm
- Language: C++
- Size: 12.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Kaleidoscope-plus
## Grammer
```
expression ::= primary binoprhsprimary
::= identifierexpr
::= numberexpr
::= parenexprbinoprhs
::= (binop primary)*identifierexpr
::= identifier
::= identifier `(` expression* `)`numberexpr ::= number
parenexpr ::= `(` expression `)`
``````
definition ::= `def` prototype expressionexternal ::= 'extern' prototype
prototype ::= identifier `(` identifier* `)`
toplevelexpr ::= expression
```