https://github.com/soniex2/pp
Pretty Parser / Parser Processor. A C program that lets you parse while you parse.
https://github.com/soniex2/pp
Last synced: 5 months ago
JSON representation
Pretty Parser / Parser Processor. A C program that lets you parse while you parse.
- Host: GitHub
- URL: https://github.com/soniex2/pp
- Owner: SoniEx2
- License: mit
- Created: 2015-01-22T22:00:57.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-01-22T22:05:15.000Z (over 11 years ago)
- Last Synced: 2025-06-05T01:41:04.710Z (about 1 year ago)
- Size: 168 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PP
Pretty Parser / Parser Processor. A C program that lets you parse while you parse.
The basic idea is that you can write macros just like a macro preprocessor, but you can also write parsers, that is, you can modify the syntax rules while you macro. This means you can write an x86 compiler with it, but not just that, you can also write a Forth compiler using the x86 compiler, or a C89 compiler with the Forth compiler with the x86 compiler!
Obviously it isn't able to do _everything_, and many times it'll probably get stuck in an infinite loop, but that can happen with normal parsers too so nothing wrong there. :P