org.sablecc.php4
Class PhpLexer

Object
  extended byorg.sablecc.php4.lexer.Lexer
      extended byorg.sablecc.php4.PhpLexer

public class PhpLexer
extends Lexer


Nested Class Summary
 
Nested classes inherited from class org.sablecc.php4.lexer.Lexer
Lexer.State
 
Field Summary
 
Fields inherited from class org.sablecc.php4.lexer.Lexer
state, token
 
Constructor Summary
PhpLexer(PushbackReader pbr)
           
 
Method Summary
 String ds(String s)
          Unescape double quote PHP string into a native java string.
protected  Token getToken()
           
 boolean getUnescapeStrings()
           
 void setUnescapeStrings(boolean val)
          Set whether unescape the PHP strings.
 String ss(String s)
          Unescape single quote PHP string into a native java string.
 
Methods inherited from class org.sablecc.php4.lexer.Lexer
filter, next, peek, unread
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PhpLexer

public PhpLexer(PushbackReader pbr)
Method Detail

setUnescapeStrings

public void setUnescapeStrings(boolean val)
Set whether unescape the PHP strings. By default is true.


getUnescapeStrings

public boolean getUnescapeStrings()

getToken

protected Token getToken()
                  throws IOException,
                         LexerException
Overrides:
getToken in class Lexer
Throws:
IOException
LexerException

ss

public String ss(String s)
Unescape single quote PHP string into a native java string.


ds

public String ds(String s)
Unescape double quote PHP string into a native java string.