Package st.gravel.support.compiler.ast

Examples of st.gravel.support.compiler.ast.StringLiteralNode.factory()


  @Test
  public void testParseString1() {
    final StringLiteralNode _node;
    _node = ((StringLiteralNode) Parser.factory.source_("\'fromage\'").parseExpression());
    assertTrue(st.gravel.support.jvm.ObjectExtensions.equals_(_node.factory(), StringLiteralNode.factory));
    assertTrue(st.gravel.support.jvm.StringExtensions.equals_(_node.value(), "fromage"));
  }

  @Test
  public void testParseString2() {
View Full Code Here


  @Test
  public void testParseString2() {
    final StringLiteralNode _node;
    _node = ((StringLiteralNode) Parser.factory.source_("\'from\'\'age\'").parseExpression());
    assertTrue(st.gravel.support.jvm.ObjectExtensions.equals_(_node.factory(), StringLiteralNode.factory));
    assertTrue(st.gravel.support.jvm.StringExtensions.equals_(_node.value(), "from\'age"));
  }

  @Test
  public void testParseSymbol1() {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.