Esempio n. 1
0
 @Test
 public void testParseChar() {
   final CharacterLiteralNode _node;
   _node = ((CharacterLiteralNode) Parser.factory.source_("$a").parseExpression());
   assertTrue(
       st.gravel.support.jvm.ObjectExtensions.equals_(
           _node.factory(), CharacterLiteralNode.factory));
   assertEquals((String) "$a", (String) _node.prettySourceString());
   assertTrue(st.gravel.support.jvm.CharacterExtensions.equals_(_node.value(), 'a'));
 }
Esempio n. 2
0
 @Override
 public PragmaNode printOn_(final StringBuilder _aStream) {
   final String _title;
   _title = this.factory().toString();
   _aStream.append(
       st.gravel.support.jvm.CharacterExtensions.isVowel(_title.charAt(0)) ? "an " : "a ");
   _aStream.append(_title);
   _aStream.append('[');
   this.sourceOn_(_aStream);
   _aStream.append(']');
   return this;
 }