Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anachrocomputer/parser
Simple lexical analyser and parser
https://github.com/anachrocomputer/parser
6309 6809 code-generation compiler parsing retrocomputing
Last synced: about 2 hours ago
JSON representation
Simple lexical analyser and parser
- Host: GitHub
- URL: https://github.com/anachrocomputer/parser
- Owner: anachrocomputer
- Created: 2022-08-07T21:12:07.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-09-20T21:11:13.000Z (about 2 years ago)
- Last Synced: 2023-07-12T22:40:31.517Z (over 1 year ago)
- Topics: 6309, 6809, code-generation, compiler, parsing, retrocomputing
- Language: C
- Homepage:
- Size: 228 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple Lexical Analyser and Parser #
Currently able to tokenise most of the C language and parse very limited
external declarations, functions, and statements.See 'simpledecl.c' and 'simplectrl.c' for example files that can be parsed.
'simplefunc.c' is an example file that can be compiled, assembled,
transferred to a 6809 machine and run (it relies on I/O via the monitor ROM
routines of my UK109, but can be modified for other hardware).Use the '-T' command-line option to enable token-level debugging output.
Use the '-S' command-line option to enable syntax trace output.## Code Generation ##
Code generation for the 6809 and 6309 using the 'asm6809' assembler.
TODO: add a '-PIC' command-line option for position-independent code.
I think the 6809 architecture is suitable for that.