org.jruby.lexer.yacc
Class RubyYaccLexer
java.lang.Object
org.jruby.lexer.yacc.RubyYaccLexer
- All Implemented Interfaces:
- ILexer, IYaccLexer
- public class RubyYaccLexer
- extends java.lang.Object
- implements IYaccLexer
This is a port of the MRI lexer to Java it is compatible to Ruby 1.6.7.
- Version:
- $Revision: 1.13 $
- Author:
- jpetersen
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RubyYaccLexer
public RubyYaccLexer()
advance
public boolean advance()
throws java.io.IOException
- Specified by:
advance
in interface IYaccLexer
- Throws:
java.io.IOException
token
public int token()
- Specified by:
token
in interface IYaccLexer
value
public java.lang.Object value()
- Specified by:
value
in interface IYaccLexer
resetStacks
public void resetStacks()
getPosition
public ISourcePosition getPosition()
setErrorHandler
public void setErrorHandler(IErrorHandler errorHandler)
- Specified by:
setErrorHandler
in interface ILexer
setSource
public void setSource(ILexerSource source)
- Specified by:
setSource
in interface ILexer
setState
public void setState(ILexerState state)
getCmdArgumentState
public StackState getCmdArgumentState()
getConditionState
public StackState getConditionState()
Copyright © 2002 Jan Arne Petersen. All Rights Reserved.