Announcing MetaCC framework

Leszek Piotrowicz <leszekpi@megapolis.pl>
26 Oct 2006 00:32:19 -0400

          From comp.compilers

Related articles
Announcing MetaCC framework leszekpi@megapolis.pl (Leszek Piotrowicz) (2006-10-26)
| List of all articles for this month |

From: Leszek Piotrowicz <leszekpi@megapolis.pl>
Newsgroups: comp.compilers
Date: 26 Oct 2006 00:32:19 -0400
Organization: tp.internet - http://www.tpi.pl/
Keywords: available, Java
Posted-Date: 26 Oct 2006 00:32:19 EDT

Announcing MetaCC framework


MetaCC is a framework for compiler construction implemented in Java.
It is available for download from http://metacc.sourceforge.net


The ultimate goal of MetaCC framework is to make a programming language
(whatever one is processed by the framework) extendable.
Extendable means that the language itself or a programming environment
can influence language tokenizing, parsing, semantic analysis and other
phases of its processing. The influence can manifest in example in
adding or modifying language constructions on the fly, during compile
time.


To reach this goal rules for tokenizing, parsing, code generation cannot
be static or precompiled by some other tool, but instead they must be
dynamic and embeeddable into the language. Rich metainformation (that is
information about compiler environment) must be available and
configurable by the programming environment.


The framework is in initial stage now (version 0.1). Lexer and parser
generators are available. Lexer is based on DFA algorithm (via
intermediate NFA) and parser uses LALR1 algorithm. Both of them
construct their tables dynamically on the fly.


As an example java5 lexer and parser definitions are provided.
Together they correctly parse all java5 library sources.


Feedback welcome!


Leszek Piotrowicz



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.