https://github.com/ekoeppen/nemesis
A Forth compiler written in OCaml
https://github.com/ekoeppen/nemesis
cortex-m0 forth msp430 ocaml
Last synced: over 1 year ago
JSON representation
A Forth compiler written in OCaml
- Host: GitHub
- URL: https://github.com/ekoeppen/nemesis
- Owner: ekoeppen
- Created: 2019-09-11T18:06:54.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-10-30T14:04:08.000Z (over 3 years ago)
- Last Synced: 2025-02-08T08:47:17.303Z (over 1 year ago)
- Topics: cortex-m0, forth, msp430, ocaml
- Language: Forth
- Homepage:
- Size: 50.8 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nemesis
Nemesis is a simplistic Forth single pass compiler written in OCaml using Menhir.
As a compiler, it does not process immediate words, these are handled explicitly in OCaml
code. This requires a slightly more complex grammar to prevent executing immediate words
when they are defined.
## Forths
Nemesis comes with an STC Forth for Cortex M0 chips, and a DTC Forth for MSP430 chips.
## Usage
See `nemesis --help` on how to use the compiler. The compiler produces a raw binary file
which can be flashed using e.g `stm32flash` for STM32 chips.