示例#1
0
 private static AstNode ParseHash(TokenStream stream)
 {
     stream.Expect (TokenClass.OpenBrace);
     HashExpression ret = new HashExpression (stream.Location);
     while (!stream.Match (TokenClass.CloseBrace)) {
         ret.Add (ParseExpression (stream));
         stream.Expect (TokenClass.Colon);
         ret.Add (ParseExpression (stream));
         if (!stream.Accept (TokenClass.Comma)) {
             break;
         }
     }
     stream.Expect (TokenClass.CloseBrace);
     return ret;
 }
示例#2
0
 public void Accept(HashExpression hash)
 {
     visitSubnodes (hash);
     methodBuilder.EmitInstruction (hash.Location, Opcode.BuildHash, hash.Children.Count / 2);
 }
示例#3
0
		public override void Accept (HashExpression hash)
		{
			hash.VisitChildren (this);
			methodBuilder.EmitInstruction (hash.Location, Opcode.BuildHash, hash.Children.Count / 2);
		}
示例#4
0
 public void Accept(HashExpression hash)
 {
     hash.Visit (functionCompiler);
 }
示例#5
0
		public override void Accept (HashExpression hash)
		{
			hash.Visit (parentVisitor);
		}
示例#6
0
 public virtual void Accept(HashExpression hash)
 {
 }
示例#7
0
 public void Accept(HashExpression hash)
 {
     hash.VisitChildren (this);
 }
示例#8
0
 public void Accept(HashExpression hash)
 {
 }