Package com.github.sommeri.less4j.core.parser.ANTLRParser

Examples of com.github.sommeri.less4j.core.parser.ANTLRParser.ParseResult


  @Test
  public void simpleIncorrectSelector() throws RecognitionException {
    String crashingSelector = "p:not*()";
    ANTLRParser compiler = new ANTLRParser();
    ParseResult result = compiler.parseSelector(crashingSelector, null);
   
    assertNoTokenMissing(crashingSelector, result.getTree(), 0);
  }
View Full Code Here


  @Test
  public void combinedIncorrectSelector() throws RecognitionException {
    String crashingSelector = "p:not*()  p:not() { }";
    ANTLRParser compiler = new ANTLRParser();
    ParseResult result = compiler.parseRuleset(crashingSelector, null);

    assertNoTokenMissing(crashingSelector, result.getTree(), 0);
  }
View Full Code Here

TOP

Related Classes of com.github.sommeri.less4j.core.parser.ANTLRParser.ParseResult

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.