Class RegularExprProduction

java.lang.Object
EDU.purdue.jtb.parser.syntaxtree.RegularExprProduction
All Implemented Interfaces:
INode, Serializable

public class RegularExprProduction extends Object implements INode
JTB node class for the production RegularExprProduction:
Corresponding grammar:
f0 -> [ %0 #0 "invalid input: '<'" #1 "*" #2 ">"
.. .. | %1 #0 "invalid input: '<'" #1 invalid input: '<' IDENTIFIER >
.. .. . .. #2 ( $0 "," $1 invalid input: '<' IDENTIFIER > )*
.. .. . .. #3 ">" ]
f1 -> RegExprKind()
f2 -> [ #0 "[" #1 "IGNORE_CASE" #2 "]" ]
f3 -> ":"
f4 -> "{"
f5 -> RegExprSpec()
f6 -> ( #0 "|" #1 RegExprSpec() )*
f7 -> "}"
s: 484788342
See Also:
  • Field Details

  • Constructor Details

    • RegularExprProduction

      public RegularExprProduction(NodeOptional n0, RegExprKind n1, NodeOptional n2, Token n3, Token n4, RegExprSpec n5, NodeListOptional n6, Token n7)
      Constructs the node with all its children nodes.
      Parameters:
      n0 - - first child node
      n1 - - next child node
      n2 - - next child node
      n3 - - next child node
      n4 - - next child node
      n5 - - next child node
      n6 - - next child node
      n7 - - next child node
  • Method Details

    • accept

      public int accept(IIntVisitor vis)
      Accepts a IIntVisitor visitor with user return data.
      Specified by:
      accept in interface INode
      Parameters:
      vis - - the visitor
      Returns:
      the user Return data
    • accept

      public void accept(IVoidVisitor vis)
      Accepts a IVoidVisitor visitor} visitor with user return data.
      Specified by:
      accept in interface INode
      Parameters:
      vis - - the visitor