How to write languges that parses languages

The ANTLR Mega Tutorial

2 Likes

Back in '81 I wrote a Fortran program that would take a Fortran 77 program and convert it to really ugly COBOL… Does that count?

3 Likes

Not much to add here, but ANTLR is awesome :+1:. I’ve written DSL’s with it before and it’s an absolute pleasure to work with compared to other offerings like lex/yacc (flex/bison).

2 Likes

Today I learned Domain Specific Languages

2 Likes

The bit of messing with Perl 6 Grammars I did was fantastic, except that the end result was slower than I would have liked.