org.jruby.parser
Class SyntaxErrorState

java.lang.Object
  extended byorg.jruby.parser.SyntaxErrorState

public class SyntaxErrorState
extends java.lang.Object

Parser state when a syntax error occured. used to compute an error message

Version:
$Revision: 1.1 $
Author:
Benoit Cerrina

Constructor Summary
SyntaxErrorState(java.lang.String[] iExpected, java.lang.String iFound)
           
 
Method Summary
 java.lang.String[] expected()
          the list of the names of the expected tokens.
 java.lang.String found()
          the name of the found token.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SyntaxErrorState

public SyntaxErrorState(java.lang.String[] iExpected,
                        java.lang.String iFound)
Method Detail

found

public java.lang.String found()
the name of the found token.


expected

public java.lang.String[] expected()
the list of the names of the expected tokens.



Copyright © 2002 Jan Arne Petersen. All Rights Reserved.