https://github.com/justinmchase/uffda
Uffda is a parser generator for domain specific languages.
https://github.com/justinmchase/uffda
compiler dsl parser
Last synced: 9 months ago
JSON representation
Uffda is a parser generator for domain specific languages.
- Host: GitHub
- URL: https://github.com/justinmchase/uffda
- Owner: justinmchase
- Created: 2020-10-28T19:37:58.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2025-01-20T21:18:31.000Z (about 1 year ago)
- Last Synced: 2025-05-12T14:26:51.999Z (9 months ago)
- Topics: compiler, dsl, parser
- Language: TypeScript
- Homepage:
- Size: 726 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Uffda 🦕
Uffda is a parser generator for domain specific languages.
It is different from many parser generators in that the syntax is expressive
enough to support parsing strings as well as objects, arrays or any other value
type. The result of this capability is that the entire compiler pipeline can be
expressed in pattern matching operations.
## Development
This is a deno library.
#### test
```sh
deno test --watch --parallel
```
#### cli
```sh
deno run --allow-env --allow-read --allow-write \
main.ts compile \
--src src \
--dst dst
```
### References
This project is based on a previous project I made called Meta# which was a C#
implementation of the ideas written in the OMeta paper by
[Alessandro Warth](http://www.tinlizzie.org/~awarth/).
> OMeta’s key insight is the realization that all of the passes in a traditional
> compiler are essentially pattern matching operations
>
> ~ Experimenting with Programming Languages, Alessandro Warth 2009
- [Experimenting with Programming Languages](http://www.vpri.org/pdf/tr2008003_experimenting.pdf)
- [ohm-js](https://ohmlang.github.io/)
- [meta#](https://archive.codeplex.com/?p=metasharp)