Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adityjhaa/toy-language
A simple language based on Ocaml
https://github.com/adityjhaa/toy-language
interpreter ocaml prolog
Last synced: 3 months ago
JSON representation
A simple language based on Ocaml
- Host: GitHub
- URL: https://github.com/adityjhaa/toy-language
- Owner: adityjhaa
- License: mit
- Created: 2024-02-18T08:18:06.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-04-25T15:31:25.000Z (9 months ago)
- Last Synced: 2024-09-29T06:41:07.523Z (4 months ago)
- Topics: interpreter, ocaml, prolog
- Language: OCaml
- Homepage:
- Size: 23.4 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# A Toy Language
This is a simple toy language based on Ocaml.
### BASIC
This is a simple toy calculator with two modes of computation:
- **An interpreter**
- **A compiler and a stack machine**### LEXER
This is the lexer or tokenizer for the language, which tokenizes a given expression into tokens which will be read by the Parser.
### PARSER
This tool parses the lexical tokens created by the lexer and creates an abstract syntax tree (ast). This specific parser is designed for an object language similar to the Prolog language.
### INTERPRETER
This is the interpreter for the simple Prolog-like language that uses the lexer and parser above.