Dresden OCL Toolkit

tudresden.ocl.parser
Class OclParser

java.lang.Object
  extended bytudresden.ocl.parser.parser.Parser
      extended bytudresden.ocl.parser.OclParser

public class OclParser
extends Parser

This class adapts the Parser class generated by SableCC to produce abstract syntax trees (instead of concrete syntax trees). It is necessary because the OCL grammar is not LALR(1)-parsable.


Nested Class Summary
(package private)  class OclParser.AstFix
           
 
Field Summary
protected  OclParser.AstFix fix
           
protected  Node oclNode
           
 
Fields inherited from class tudresden.ocl.parser.parser.Parser
ignoredTokens, node
 
Constructor Summary
OclParser(Lexer lexer)
           
 
Method Summary
protected  void filter()
           
 
Methods inherited from class tudresden.ocl.parser.parser.Parser
parse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fix

protected OclParser.AstFix fix

oclNode

protected Node oclNode
Constructor Detail

OclParser

public OclParser(Lexer lexer)
Method Detail

filter

protected void filter()
Overrides:
filter in class Parser

Dresden OCL Toolkit

Submit a bug
Developed at the Dresden University of Technology.
This software is published under the GNU Lesser General Public License.