Пример #1
0
	void Associative_Char(out ProtoCore.AST.AssociativeAST.AssociativeNode node) {
		node = null; 
		Expect(5);
		if (t.val.Length <= 2) {
		   errors.SemErr(t.line, t.col, Resources.EmptyCharacterLiteral);
		}
		
		node = new ProtoCore.AST.AssociativeAST.CharNode() 
		{ 
		   Value = t.val.Substring(1, t.val.Length - 2),
		   line = t.line,
		   col = t.col
		}; 
		
	}
Пример #2
0
 public CharNode(CharNode rhs)
 {
     value = rhs.value;
 }