GitXplorerGitXplorer
p

frontc

public
3 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
b01e7e011595e778749fe6031868fb5b27dd8841

comment support is pretty good

ppchickey committed 15 years ago
Unverified
847f615b3ea22f5e6b47e5999548f188230f7d39

Merge branch 'multiline-comment-indentations'

ppchickey committed 15 years ago
Unverified
9478c2da2b1e9ef431530ba57307d0d0fbf91d29

happy with the way it handles indentation and aligning multiline comments

ppchickey committed 15 years ago
Unverified
b8db569416b373480b5ccae41b8f8b8846a94c5f

multiline in an indented block to test prettyprinter

ppchickey committed 15 years ago
Unverified
2b440216067d0f3556aad1dfc3bed3816acbb8eb

handles multiline xml comments gracefully

ppchickey committed 15 years ago
Unverified
b5337794b615ee0dac3fc303b88e2ecca7a4e252

forgot this makefile

ppchickey committed 15 years ago

README

The README file for this repository.

FrontC fork by Pat Hickey

I'm working on a research project with Professor Chung-chieh Shan which will replace the C preprocessor with an OCAML based code generation system. We think it will be adventageous for a code generator to directly manipulate the C AST. So far I've added support for comments in the pretty printers- in printc, comments are preserved and pretty printed; in ctoxml, comments are pretty printed as XML comments.

I'm working on support for #include directives so that you don't need to run a file through cpp to have all the type names defined.

Front V3.4

FrontC is C language front-end. It provides the program in "C Abstract Form", a tree representation of the original C source. It may be used for many source works including: - compilation, - source pre-processing, - source beautification, - source analysis, - and so on. In the version 3.1, it provides also an XML back-end making easier to transform the C program using XML tools like XSLT (it was my first goal when I perform this task).

FrontC is an OCAML library and is easier to use with this language. Usually, it is installed in the /usr/lib/ocaml/site-lib where it creates its own directory. For compiling with FrontC, you must have a command like: ocamlc -I/usr/lib/ocaml/site-lib/frontc ... And for linking, it may be: ocamlc unix.cma /usr/lib/ocaml/site-lib/frontc.cma ...

Have fun with it. If you are experiencing problems, feel free to contact me at casse@irit.fr.