예제 #1
0
 public Line(int lineId, string name_line, int nbr_place_line, typeE type)
 {
     LineId              = lineId;
     this.name_line      = name_line;
     this.nbr_place_line = nbr_place_line;
     typee = type;
 }
예제 #2
0
            public object JSonVal;   // atm this is PatchedLJ.JsonValue - but i don't want to have the decision on json library bound here
            public override void build( )
            {
                NamedNode rhs = children[1];

                if (rhs is SharpRefNode)
                {
                    name = (rhs as SharpRefNode).name; type = typeE.sharp; return;
                }
                if (rhs is DollarRefNode)
                {
                    name = (rhs as DollarRefNode).name; type = typeE.dollar; return;
                }

                if (rhs is TermNode && TermEnum(rhs) == PTokE.JSON)
                {
                    type    = typeE.json;
                    JSonVal = ((rhs as TermNode).tok as PTokJSON).payJSON;
                    return;
                }
                throw new NotImplementedException();
            }