Package org.eclipse.xtext

Examples of org.eclipse.xtext.Grammar


 
  @ValueConverter(rule = "QualifiedName")
  public IValueConverter<String> getQualifiedNameConverter() {
    boolean _equals = Objects.equal(this.qualifiedNameValueConverter, null);
    if (_equals) {
      Grammar _grammar = this.getGrammar();
      FQNConverter _fQNConverter = new FQNConverter(_grammar);
      this.qualifiedNameValueConverter = _fQNConverter;
    }
    return this.qualifiedNameValueConverter;
  }
View Full Code Here


    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
      hiddenInLastNode = currentHidden;
    }
View Full Code Here

TOP

Related Classes of org.eclipse.xtext.Grammar

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.