20 lines
280 B
Java
20 lines
280 B
Java
package sexpression;
|
|
|
|
public abstract class Atom extends SExpression {
|
|
|
|
private String text;
|
|
|
|
public Atom(String text) {
|
|
this.text = text;
|
|
}
|
|
|
|
public boolean atomp() {
|
|
return true;
|
|
}
|
|
|
|
public String toString() {
|
|
return text;
|
|
}
|
|
|
|
}
|