[lug] parsing tool for linux
Ken Weinert
mc at morat.net
Mon Apr 8 06:03:07 MDT 2002
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Monday 08 Apr 2002 5:57, you wrote:
> This is of course only a token stream. For your application i assume you
> want the abstract syntax tree. So either you write a parser with Yacc (i
> know i have the yacc files for c somewhere ...) or you hack gcc.
To second what someone else said, ANTLR is very good at the abstract syntax
tree sort of stuff. I worked with them back when they were PCCTS (Purdue
Compiler Constructor Tool Set) and met the designer one day here in Denver as
he was passing through. It started out as a graduate thesis and evolved into
a commercial company.
I'm not sure to what extent the code is still open source, although last I
knew it was done in the typical way of a lot of commercial open source.
Download and use it, no problem, you pay for commercial support.
- --
Ken Weinert mc at morat.net
GnuPG KeyID: 9274F1CE GnuPG available at http://www.gnupg.org/
GnuPG Key Fingerprint: 1D87 3720 BB77 4489 A928 79D6 F8EC DD76 9274 F1CE
Cannot find REALITY.SYS. Universe halted.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iEYEARECAAYFAjyxhwEACgkQ+OzddpJ08c5EHQCeKMBfOZv6ghQ7N1c7ooc2PLMT
yX4An0p/D6ZgaRHWeBLMPqzF7qqhDUe5
=dmQI
-----END PGP SIGNATURE-----
More information about the LUG
mailing list