Package persistence.antlr

Examples of persistence.antlr.Token


    match(RCURLY);
  }
 
  public final void classDef() throws RecognitionException, TokenStreamException {
   
    Token  a = null;
    Token  d = null;
    String doc=null;
   
    try {      // for error handling
      {
      switch ( LA(1)) {
      case ACTION:
      {
        a = LT(1);
        match(ACTION);
        if ( inputState.guessing==0 ) {
          behavior.refPreambleAction(a);
        }
        break;
      }
      case DOC_COMMENT:
      case LITERAL_lexclass:
      case LITERAL_class:
      {
        break;
      }
      default:
      {
        throw new NoViableAltException(LT(1), getFilename());
      }
      }
      }
      {
      switch ( LA(1)) {
      case DOC_COMMENT:
      {
        d = LT(1);
        match(DOC_COMMENT);
        if ( inputState.guessing==0 ) {
          doc=d.getText();
        }
        break;
      }
      case LITERAL_lexclass:
      case LITERAL_class:
View Full Code Here


        }
      }
    }
   
  public final  Token  id() throws RecognitionException, TokenStreamException {
     Token idTok ;
   
    Token  a = null;
    Token  b = null;
    idTok = null;
   
    switch ( LA(1)) {
    case TOKEN_REF:
    {
View Full Code Here

 
  public final void lexerSpec(
    String doc
  ) throws RecognitionException, TokenStreamException {
   
    Token  lc = null;
    Token  a = null;
   
      Token idTok;
      String sup=null;
   
   
    {
    switch ( LA(1)) {
View Full Code Here

 
  public final void treeParserSpec(
    String doc
  ) throws RecognitionException, TokenStreamException {
   
    Token  a = null;
   
      Token idTok;
      String sup=null;
   
   
    match(LITERAL_class);
    idTok=id();
View Full Code Here

 
  public final void parserSpec(
    String doc
  ) throws RecognitionException, TokenStreamException {
   
    Token  a = null;
   
      Token idTok;
      String sup=null;
   
   
    match(LITERAL_class);
    idTok=id();
    {
    switch ( LA(1)) {
    case LITERAL_extends:
    {
      match(LITERAL_extends);
      match(LITERAL_Parser);
      {
      switch ( LA(1)) {
      case LPAREN:
      {
        sup=superClass();
        break;
      }
      case SEMI:
      {
        break;
      }
      default:
      {
        throw new NoViableAltException(LT(1), getFilename());
      }
      }
      }
      break;
    }
    case SEMI:
    {
      if ( inputState.guessing==0 ) {
       
              antlrTool.warning("use 'class X extends Parser'", getFilename(), idTok.getLine(), idTok.getColumn());
        //      System.out.println("warning: line " +
        //        idTok.getLine() + ": use 'class X extends Parser'");
             
      }
      break;
View Full Code Here

    } while (true);
    }
  }
 
  public final  Token  optionValue() throws RecognitionException, TokenStreamException {
     Token retval ;
   
    Token  sl = null;
    Token  cl = null;
    Token  il = null;
    retval = null;
   
    switch ( LA(1)) {
    case TOKEN_REF:
    case RULE_REF:
View Full Code Here

    return retval ;
  }
 
  public final void parserOptionsSpec() throws RecognitionException, TokenStreamException {
   
    Token idTok; Token value;
   
    match(OPTIONS);
    {
    _loop21:
    do {
View Full Code Here

    match(RCURLY);
  }
 
  public final void treeParserOptionsSpec() throws RecognitionException, TokenStreamException {
   
    Token idTok; Token value;
   
    match(OPTIONS);
    {
    _loop24:
    do {
View Full Code Here

    match(RCURLY);
  }
 
  public final void lexerOptionsSpec() throws RecognitionException, TokenStreamException {
   
    Token idTok; Token value; BitSet b;
   
    match(OPTIONS);
    {
    _loop27:
    do {
View Full Code Here

    return b ;
  }
 
  public final void subruleOptionsSpec() throws RecognitionException, TokenStreamException {
   
    Token idTok; Token value;
   
    match(OPTIONS);
    {
    _loop30:
    do {
View Full Code Here

TOP

Related Classes of persistence.antlr.Token

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.