[antlr-interest] Problems with the C version of ANTLR
Christian Schladetsch
christian.schladetsch at gmail.com
Thu Sep 10 02:07:51 PDT 2009
Hi All,
A while ago I asked about an ANTLR grammar for HLSL files. These are for
DirectX shaders.
I didn't get a response then, and got around to writing one some time ago. I
thought it may be of interest to others, so for the record it is at
http://code.google.com/p/schladetsch/source/browse/trunk/Effects/Tools/EffectTranslator.
This includes the lexer, parser, AST walker and string-templates for
output.
If there is further interest, I can add the C# tool that parses a .fx file
to an AST then produces a .fx file via StringTemplates.
Cheers,
Christian
PS. Apologies if you get this twice.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090910/e74f6ea8/attachment.html
More information about the antlr-interest
mailing list