Пример #1
0
	protected JExprList(Context context)
		: base(context)
	{
		this.kind__ = KIND;
		this.first = null;
		this.last = null;
	}
Пример #2
0
	public JExprListElem(Context context, Object name, JNode expr, JExprListElem next)
		: base(context)
	{
		this.kind__ = KIND;
		this.name = name;
		this.expr = expr;
		this.next = next;
	}
Пример #3
0
	// Add an expression to a list.
	public static void AddExprToList(JExprList list, Object name, JNode expr)
			{
				JExprListElem elem = new JExprListElem
					(null, name, expr, null);
				if(list.last != null)
				{
					list.last.next = elem;
				}
				else
				{
					list.first = elem;
				}
				list.last = elem;
			}