/** * Copyright (c): Uwe Schmidt, FH Wedel * * You may study, modify and distribute this source code * FOR NON-COMMERCIAL PURPOSES ONLY. * This copyright message has to remain unchanged. * * Note that this document is provided 'as is', * WITHOUT WARRANTY of any kind either expressed or implied. */ /** * eine Klasse fuer den speziellen Wert NIL * * von dieser Klasse wird nur ein Exemplar erzeugt, * u.z. bei der Initialisierung der static Variablen nil * in der Klasse SExpr * */ //-------------------- class Nil extends Symbol { Nil() { super("()"); } //-------------------- // nil ist gleichzeitig die leere Liste public SExpr isList() { return t; } public SExpr isEqual(SExpr e2) { return e2.isNull(); } }