[antlr-interest] HLSL Parser

Christian Schladetsch christian.schladetsch at gmail.com
Mon Sep 7 21:24:56 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/20090908/20af6b85/attachment.html 


More information about the antlr-interest mailing list