se.chalmers.cs.gf.parse.chart
Class IntLiteralRule

java.lang.Object
  extended by se.chalmers.cs.gf.parse.chart.Rule
      extended by se.chalmers.cs.gf.parse.chart.TerminalRule
          extended by se.chalmers.cs.gf.parse.chart.IntLiteralRule

public class IntLiteralRule
extends TerminalRule

A CF grammar production whose right hand side is a single int literal.


Constructor Summary
IntLiteralRule()
           
 
Method Summary
 Tree makeTree(Token t, int startIndex, int endIndex)
          Build an abstract syntax tree from this rule.
 
Methods inherited from class se.chalmers.cs.gf.parse.chart.TerminalRule
equals, equals, getFun, getSize, getTerminal, hashCode, isTerminal, toString
 
Methods inherited from class se.chalmers.cs.gf.parse.chart.Rule
getCategory
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IntLiteralRule

public IntLiteralRule()
Method Detail

makeTree

public Tree makeTree(Token t,
                     int startIndex,
                     int endIndex)
Description copied from class: TerminalRule
Build an abstract syntax tree from this rule. Since this is a terminal rule, we don't need to know about the children.

Overrides:
makeTree in class TerminalRule