XCaminhante / meta

Metacompiler based on Val Schorre's META-II

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Meta, a straightforward compiler-compiler

This project is based on META-II by Val Schorre.

Meta generates C code implementing a parser/compiler for a EBNF-like grammar file.

Meta is written in itself so it needs to be bootstrapped from a C implementation.

Build and use

To bootstrap:

make meta

To compile a grammar in the same directory:

make grammar

To compile directly:

./meta grammar.meta grammar.c
gcc grammar.c -o grammar

TODO

  • Refactoring
  • Understandable messages for syntax errors and warnings
  • Create useful grammar examples
  • Create a demonstration compiler
  • Saner documentation
  • Multilanguage documentation (english, etc)

About

Metacompiler based on Val Schorre's META-II

License:The Unlicense


Languages

Language:C 98.5%Language:Makefile 1.5%