UniCC Standard C Parser Template

Version 1.0.0 (2012)
Project state inactive
Download Shipped with the UniCC LALR(1) Parser Generator
Mercurial SCM repository https://bitbucket.org/codepilot/cparser
License BSD open source license

Overview

The UniCC Standard C Parser Template enables the UniCC LALR(1) Parser Generator to support the C programming language in its program module generator. Using this template, UniCC is capable to generate parsers expressed in the C programming language from a UniCC Grammar Definition describing a context-free grammar for a language.The template also provides facilities for further grammar processing and integration of the generated modules with other C modules.

The UniCC Standard C Parser Template is also used by UniCC itself for bootstrap, meaning that UniCC constructs its own parser out of itself.

Features

The UniCC Standard C Parser Template provides the following features.

The integrated syntax-tree generator can be optionally activated, and constructs a virtual tree structure within the parser, which can be visualized or used to construct abstract syntax trees (ASTs). An automatism for creating ASTs right from within a parser using the UniCC Standard C Parser Template is planned.

The build-in syntax tree visualizer prints out a textual view on console. With some tricks and extensions on the same template, graphical trees can be rendered (in this case with assistance of SVG Tree Drawer).

A preview image of an generated ASCII-mode syntax-tree view. An image showing a graphical syntax tree.

Licensing

The UniCC Standard C Parser Template is licensed under the BSD open source license.