LeafTASSIntParser.java
package edu.udel.cis.vsl.tass.ast.parser;
import edu.udel.cis.vsl.tass.number.Numbers;
import edu.udel.cis.vsl.tass.number.IF.IntegerNumberIF;
class LeafTASSIntParser extends LeafParser {
public LeafTASSIntParser(NodeTypes nodeTypes, RefMappers refMappers) {
super(nodeTypes, refMappers);
}
@Override
public LeafTASSIntParser makeInstance() {
return new LeafTASSIntParser(nodeTypes, refMappers);
}
@Override
public TASSIntEltWrapper node() {
return new TASSIntEltWrapper(Numbers.REAL_FACTORY.integer(charData.trim()));
}
}