Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.