[antlr-interest] HLSL ANTLR System

Christian Schladetsch christian.schladetsch at gmail.com
Sun Sep 6 22:10:11 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, but I 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090907/89a5406d/attachment.html 


More information about the antlr-interest mailing list