For Programmers: Free Programming Magazines  


Home > Archive > Compilers > September 2004 > Other than lex/yacc









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Other than lex/yacc
umar

2004-08-23, 4:02 pm

Hi,

I am looking for clean and efficient lexical/parser tool which generates
(abstract) syntax trees, symbol table information and easily manipulatable
intermediate form. It would be great if the tool allows handling
assertions/comments also.

I intend to derive verification conditions for the input program ( may be in
written in C,Java, or my own toy language).


Any thing other than Lex/Yacc.

regards
Dmitry A. Kazakov

2004-08-25, 3:58 pm

On 23 Aug 2004 12:06:56 -0400, umar wrote:

> Any thing other than Lex/Yacc.


This is definitely not Lex/Yacc:

http://www.dmitry-kazakov.de/ada/components.htm

It contains a parser for infix expressions capable to generate syntax
trees. No grammar required, (well, you need not to lay it down (:-))

--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de

Nick Roberts

2004-08-25, 3:59 pm

On 23 Aug 2004 12:06:56 -0400, umar <muj20@cam.ac.uk> wrote:

> I am looking for clean and efficient lexical/parser tool which
> generates (abstract) syntax trees, symbol table information and
> easily manipulatable intermediate form. It would be great if the
> tool allows handling assertions/comments also.
>
> I intend to derive verification conditions for the input program
> (may be in written in C,Java, or my own toy language).
>
> Any thing other than Lex/Yacc.


I feel I have to mention the Prolog programming language.

A free interpreter (which I can recommend) and tutorial are to be
found at:

http://www.amzi.com

but there are many other Prolog resources on the web.

I am considering using Prolog for my own purposes, for much the same
reasons you cite. It is not a parsing tool as such, but it is
readily programmed to do parsing (to generate trees) and tree
manipulations. Prolog can be used interactively, and structures are
easily played with. Just a thought.

--
Nick Roberts
Ira Baxter

2004-09-08, 3:57 am

"umar" <muj20@cam.ac.uk> wrote
> I am looking for clean and efficient lexical/parser tool which generates
> (abstract) syntax trees, symbol table information and easily manipulatable
> intermediate form. It would be great if the tool allows handling
> assertions/comments also.
>
> I intend to derive verification conditions for the input program (
> may be in written in C,Java, or my own toy language).


The DMS Software Reengineering Toolkit meets all of these
requirements. It has front ends including full symbol table
construction for C, C++, COBOL and Java. The ASTs are directly
manipulable via source to source transformations or analyzable via
attribute evaluation. See
http://www.semanticdesigns.com/Prod...MSToolkit.html.


--
Ira D. Baxter, Ph.D., CTO 512-250-1018
Semantic Designs, Inc. www.semdesigns.com
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com