Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • Back in 2005 I jotted down some random thoughts [dave.org.uk] about how it would be a good idea if templating languages weren't so closely coupled with the architecture of the rest of the system. I was thinking of a situation where a "Template Toolkit programmer" could use TT to build the front end components of systems whether they were written in Perl, Ruby, Python or any other language.

    Of course, real life intervened and I never did anything about it.

    • It sure would be easier if most languages shipped their grammer. TT has lex/yapp I believe, but I'm an ANTLR man, and a newb, so I'm sol either way at the moment. :-)

      If it were just templating, it would be a tad easier. When templates embed another language, it's even worse.

      Baby steps. Last night I made a first pass through the ANTR Ref book and at least have a working grammar/lexer/parser/tree for GET/SET expressions.

      Oddly enough, the harder part seems to be splitting the passes to separate code from content, then doing the language expressions.

      Unit Tests++++