Package org.eclipse.xtext

Examples of org.eclipse.xtext.ParserRule


    // when called for a specific parser rule, its hidden() spec (if any) is made current
    // otherwise the hidden() spec of the grammar is made current.
    // (There is no real way to calculate the calling chain to a particular starting parser rule)
    //
    if(context instanceof ParserRule) {
      ParserRule pr = (ParserRule) context;
      if(pr.isDefinesHiddenTokens())
        currentHidden = pr.getHiddenTokens();
      else {
        Grammar grammar = GrammarUtil.getGrammar(context);
        currentHidden = grammar.getHiddenTokens();
      }
      // TODO: Verify this is correct
View Full Code Here

TOP

Related Classes of org.eclipse.xtext.ParserRule

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.