Пример #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;
 }
Пример #2
0
 public void Accept(EnumNode node)
 {
 }
Пример #3
0
 public void Accept(EnumNode node)
 {
     module.Attributes.Add(node.Name, compileEnum(node));
 }