-
Recent Posts
Archives
- July 2019
- June 2012
- May 2012
- April 2012
- September 2011
- April 2011
- January 2011
- December 2010
- November 2010
- August 2010
- July 2010
- June 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
Categories
Meta
Monthly Archives: June 2009
Stitches of a flea language – defining Java annotations in Jython
Jython annotations – anyone? The last few days I tried to figure out how to create Jython annotations. A Jython annotation is defined here as a Java annotation lifted from Jython to Java. So one essentially defines a Java annotation … Continue reading
Posted in Java, Jython
9 Comments
Into The Labyrinth – using the JavaCompiler API from Jython
The Plumber After having neglected Java for years I began to re-examine it this month together with Jython and my initial reaction was a culture shock. Java is infamous for being a “plumbing language” i.e. you have to subclass some … Continue reading
Linear bounds for backtracking parsers with memoization
On the comp.compilers mailing list I asked for a confirmation of the O(n) complexity claim for packrat parsers. A packrat parser is a particular top down recursive descendant parser which applies backtracking on failure of consuming a token by application … Continue reading
Posted in Parsing
2 Comments
Is parsing Perl really impossible?
I just read this article about the apparent inability to parse Perl 5. There is an underlying assumption that a parser has to resolve all ambiguities and derive a single parse tree from an expression ( giving a unique interpretation … Continue reading
Posted in Grammars, Parsing
5 Comments
Jython – 64K ought to be enough for anybody
Jython 2.5rc4 (Release_2_5rc4:6470, Jun 8 2009, 13:23:16) [Java HotSpot(TM) Client VM (Sun Microsystems Inc.)] on java1.6.0_13 Type "help", "copyright", "credits" or "license" for more information. >>> L = range(10000) >>> eval(str(L)) Traceback (most recent call last): File "", line 1, … Continue reading
Posted in General
9 Comments
CodeTemplates – a fresh look on code transformations
This is the first part of a two part article series about CodeTemplates. CodeTemplates are a code transformation technique that suggests an alternative to common syntactic as well as lexical macros for whole language transformations. Syntactic macros About three years … Continue reading
Singular irregularities
An irregularity is a shape or rule violation. It supposes that objects are built according to rules but there are exceptional cases that don’t really fit or do at least violate our expectations of the building law. An irregularity is … Continue reading
Posted in General
3 Comments