org.jruby.lexer.yacc
Class RubyYaccLexer

java.lang.Object
  extended byorg.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

Constructor Summary
RubyYaccLexer()
           
 
Method Summary
 boolean advance()
           
 StackState getCmdArgumentState()
           
 StackState getConditionState()
           
 ISourcePosition getPosition()
           
 void resetStacks()
           
 void setErrorHandler(IErrorHandler errorHandler)
           
 void setSource(ILexerSource source)
           
 void setState(ILexerState state)
           
 int token()
           
 java.lang.Object value()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RubyYaccLexer

public RubyYaccLexer()
Method Detail

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.