Dave Horner's Website - Yet another perspective on things...
Home Tech Talk Programming Parsing code - getting a model view of your source.
46 guests
Rough Hits : 3073879
moon and stars
how did u find my site?





 
our entire universe; minuscule spec in gigantic multiverse which is mostly lethal.



 
"How did I come to know what I know about the world and myself? What ought I to know? What would I like to know that I don't know? If I want to know about this or that, where can I get the clearest, best and latest information? And where did these other people about me get their ideas about things, which are sometimes so different from mine?" - H.G. Wells
appreciate the information? drop me a line, share, or +1.

Parsing code - getting a model view of your source.

Friday, 15 May 2009 00:00
Getting a model of your code is very powerful kung foo.


PEGEX || Parsing Expression Grammars (PEG) recursive descent grammars with Regular Expressions (Regex)

PEG/Regex Parsing Framework - easily define new mini languages that can be equally compiled in many programming languages.
Pegex - metacpan.org - combining Parsing Expression Grammars (PEG) recursive descent grammars, with Regular Expressions(Regex).
pegex - Acmeist PEG Parsing Framework in npm module


pycparser - Project Hosting on Google Code - C parser and AST generator written in Python albertz/PyCParser

gcc code dom

I think the idea of having the compiler spit out an xml model is awesome.
GCC-XML - open-source C++ parser, the C++ front-end to GCC, which is currently able to deal with the language in its entirety. The purpose of the GCC-XML extension is to generate an XML description of a C++ program from GCC's internal representation. Since XML is easy to parse, other development tools will be able to work with C++ programs without the burden of a complicated C++ parser.

Elsa

Elsa is a C and C++ parser which is based on Elkhound which is like Bison. Elkhound Overview


The classics

The LEX & YACC Page Bison - GNU parser generator
Standalone lexers with lex: synopsis, examples, and pitfalls


Sprint parser

Sprint is included within the excellent Boost C++ Libraries. Boost.Spirit Home
CodeProject: JSON Spirit: A C++ JSON Parser/Generator Implemented with Boost Spirit.


ANTLR - From a grammar, ANTLR generates a parser that can build and walk parse trees.


Cscope

Cscope Home Page - Cscope is a developer's tool for browsing source code.
Vim/Cscope tutorial Cscope support has been built into Vim.


BNF Grammars for SQL-92, SQL-99 and SQL-2003

< Prev  Next >
Last Updated on Thursday, 14 August 2014 18:53