org.quasiliteral.base
Interface QuasiExprParser

All Known Implementing Classes:
QBuilder, SimpleQuasiParser

public interface QuasiExprParser

Untamed: Given a template string in the language this quasi parser understands, parse it into a ValueMaker which will generate objects of the form the template describes. The template language is a value description language augmented with $-holes, representing values to be provided at runtime to the ValueMaker.

Author:
Mark S. Miller

Method Summary
 ValueMaker valueMaker(Twine template)
          Deprecated.  
 ValueMaker valueMaker(Twine template, int[] dlrHoles)
          Enabled: For the i'th $-hole, dlrHoles[i] is the position of that hole in template, and the character at that position in template must be '$'.
 

Method Detail

valueMaker

public ValueMaker valueMaker(Twine template,
                             int[] dlrHoles)
Enabled: For the i'th $-hole, dlrHoles[i] is the position of that hole in template, and the character at that position in template must be '$'. '$' characters that don't correspond to positions in dlrHoles are treated as part of the parser's normal language rather than indicating $-holes.


valueMaker

public ValueMaker valueMaker(Twine template)
Deprecated.  

Enabled: In this old format, each $-hole is represented by a substring like '${3}' for $-hole number 3 (the fourth hole). '$' and '@' characters that are not holes must be doubled.



comments?