Skip to content

Metacompiler based on Val Schorre's META-II

License

Notifications You must be signed in to change notification settings

XCaminhante/meta

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 98.5%
  • Makefile 1.5%