예제 #1
0
파일: Parser.cs 프로젝트: limrzx/Dynamo
	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;
 }