You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
493 B
22 lines
493 B
package chocopy.common.astnodes;
|
|
|
|
import chocopy.common.analysis.NodeAnalyzer;
|
|
import java_cup.runtime.ComplexSymbolFactory.Location;
|
|
|
|
/**
|
|
* The expression 'None'.
|
|
*/
|
|
public final class NoneLiteral extends Literal {
|
|
|
|
/**
|
|
* The AST for None, spanning source locations [LEFT..RIGHT].
|
|
*/
|
|
public NoneLiteral(Location left, Location right) {
|
|
super(left, right);
|
|
}
|
|
|
|
public <T> T dispatch(NodeAnalyzer<T> analyzer) {
|
|
return analyzer.analyze(this);
|
|
}
|
|
}
|