org.quasiliteral.text
Class SimpleQuasiParser

java.lang.Object
  |
  +--org.quasiliteral.text.SimpleQuasiParser
All Implemented Interfaces:
QuasiExprParser, QuasiPatternParser

public class SimpleQuasiParser
extends Object
implements QuasiExprParser, QuasiPatternParser

Untamed: The default -- and simplest -- of the quasi parsers

Author:
Mark S. Miller

Field Summary
private  IdentityCacheTable myCache
          caches previous simple parses (as is used for quasi-parsing)
static SimpleQuasiParser THE_ONE
          Enabled:
 
Constructor Summary
private SimpleQuasiParser()
           
 
Method Summary
private  Substituter make(Twine template)
           
 MatchMaker matchMaker(Twine template)
          Enabled: Synonym for 'make', used by quasi-pattern expansion
 MatchMaker matchMaker(Twine template, int[] dlrHoles, int[] atHoles)
          Enabled:
 ValueMaker valueMaker(Twine template)
          Enabled: Synonym for 'make', used by quasi-literal expansion
 ValueMaker valueMaker(Twine template, int[] dlrHoles)
          Enabled:
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

THE_ONE

public static final SimpleQuasiParser THE_ONE
Enabled:


myCache

private final IdentityCacheTable myCache
caches previous simple parses (as is used for quasi-parsing)

Constructor Detail

SimpleQuasiParser

private SimpleQuasiParser()
Method Detail

make

private Substituter make(Twine template)

valueMaker

public ValueMaker valueMaker(Twine template,
                             int[] dlrHoles)
Enabled:

Specified by:
valueMaker in interface QuasiExprParser

valueMaker

public ValueMaker valueMaker(Twine template)
Enabled: Synonym for 'make', used by quasi-literal expansion

Specified by:
valueMaker in interface QuasiExprParser

matchMaker

public MatchMaker matchMaker(Twine template,
                             int[] dlrHoles,
                             int[] atHoles)
Enabled:

Specified by:
matchMaker in interface QuasiPatternParser

matchMaker

public MatchMaker matchMaker(Twine template)
Enabled: Synonym for 'make', used by quasi-pattern expansion

Specified by:
matchMaker in interface QuasiPatternParser


comments?