Beispiel #1
0
 private HassiumEnum compileEnum(EnumNode node)
 {
     HassiumEnum _enum = new HassiumEnum(node.Name);
     _enum.IsPrivate = node.IsPrivate;
     foreach (AstNode child in node.Children)
     {
         var op = child as BinaryOperationNode;
         _enum.AddAttribute(((StringNode)op.Left).String, new HassiumInt(((IntegerNode)op.Right).Number));
     }
     return _enum;
 }
 public void Accept(EnumNode node)
 {
 }
Beispiel #3
0
 public void Accept(EnumNode node)
 {
     module.Attributes.Add(node.Name, compileEnum(node));
 }