Package org.eclipse.xtext

Examples of org.eclipse.xtext.AbstractRule


    @Override
    public void writeHidden(EObject grammarElement, String value) throws IOException {
      System.err.println("writeHidden " + grammarElement + " v:'" + value + "'");
     
      if (grammarElement instanceof RuleCall) {
        AbstractRule rule = ((RuleCall)grammarElement).getRule();
        if (rule.getName().equals("WS")) {
          System.err.println("eating " + grammarElement + " for hidden ws");
          if (preservedWS == null) {
            preservedWS = value;
          }
          else {
View Full Code Here


   
    @Override
    public void writeSemantic(EObject grammarElement, String value) throws IOException {
      System.err.println("writeSemantic " + grammarElement + " v:'" + value + "'" );
      if (grammarElement instanceof RuleCall) {
        AbstractRule rule = ((RuleCall)grammarElement).getRule();
        if ("WS".equals(rule.getName())) {
          writeHidden(grammarElement, value);
          return;
        }
      }
      super.writeSemantic(grammarElement, value);
View Full Code Here

TOP

Related Classes of org.eclipse.xtext.AbstractRule

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.