sdr 0.7

net.cscott.sdr.calls.grm
Class Grm.Terminal

java.lang.Object
  extended by net.cscott.sdr.calls.grm.Grm
      extended by net.cscott.sdr.calls.grm.Grm.Terminal
Enclosing class:
Grm

public static class Grm.Terminal
extends Grm

A grammar terminal: a string literal to match.


Nested Class Summary
 
Nested classes/interfaces inherited from class net.cscott.sdr.calls.grm.Grm
Grm.Alt, Grm.Concat, Grm.Mult, Grm.Nonterminal, Grm.Terminal
 
Field Summary
 String literal
           
 
Constructor Summary
Grm.Terminal(String literal)
           
 
Method Summary
<T> T
accept(GrmVisitor<T> v)
           
protected  Grm.Terminal buildIntern()
           
protected  String getName()
           
protected  List<Grm> getOperands()
           
 int precedence()
           
 void repr(StringBuilder sb)
           
 
Methods inherited from class net.cscott.sdr.calls.grm.Grm
equals, grammar, hashCode, intern, mkGrm, parse, repr, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

literal

public final String literal
Constructor Detail

Grm.Terminal

public Grm.Terminal(String literal)
Method Detail

precedence

public int precedence()
Specified by:
precedence in class Grm

accept

public <T> T accept(GrmVisitor<T> v)
Specified by:
accept in class Grm

repr

public void repr(StringBuilder sb)
Specified by:
repr in class Grm

buildIntern

protected Grm.Terminal buildIntern()
Specified by:
buildIntern in class Grm

getName

protected String getName()
Specified by:
getName in class Grm

getOperands

protected List<Grm> getOperands()
Specified by:
getOperands in class Grm

sdr 0.7

Copyright © 2006-2009 C. Scott Ananian