ANTLRWorks Seems an Incredible Tool for Domain-Specific Languages

::: {.Section1} [ Via a comment by Gregg Irwin, here's a REBOL-based control language \< ?xml:namespace prefix = o />for Excel by Robert Muench. (Wow, REBOL: There's a blast from the past!). Sample code:]{style="FONT-SIZE: 10pt; COLOR: #003300; FONT-FAMILY: Verdana"}

[goto cell "B6"
change to "Testing"
select "B7"
set to "=B4 * B5"
select "A5:A9"
change to "=\\(B\\)5 * PI()"]{style="FONT-SIZE: 10pt; COLOR: #003300; FONT-FAMILY: Verdana"}

[Nice! ]{style="FONT-SIZE: 10pt; COLOR: #003300; FONT-FAMILY: Verdana"}

[I also cruised on over to the ANTLR homepage to download the latest version of what I consider the best tool for DSL work and found the beta of ANTLRWorks. Holy moley! This is one of the best [advances]{style="FONT-FAMILY: Verdana"} in development tools I've seen in many years: it's a GUI for developing grammars. It has an integrated interpreter and debugger. Check out the screenshots for a taste. The only thing I could dream of being better would be a testing framework to compare inputs to abstract syntax trees!]{style="FONT-SIZE: 10pt; COLOR: #003300; FONT-FAMILY: Verdana"}

[ANTLR 3.0 (the version in beta) doesn't seem to yet have its output templates integrated, so I think at the moment you can only generate Java-based parsers. Check out the screenshots for a taste:]{style="FONT-SIZE: 10pt; COLOR: #003300; FONT-FAMILY: Verdana"}

[ ]{style="FONT-SIZE: 10pt; COLOR: #003300; FONT-FAMILY: Verdana"}

[ ]{style="FONT-SIZE: 10pt; COLOR: #003300; FONT-FAMILY: Verdana"}

[ ]{style="FONT-SIZE: 10pt; COLOR: #003300; FONT-FAMILY: Verdana"}

[ ]{style="FONT-SIZE: 10pt; COLOR: #003300; FONT-FAMILY: Verdana"}

:::