LeafIntTypeParser.java
package edu.udel.cis.vsl.tass.ast.parser;
import edu.udel.cis.vsl.tass.ast.IF.type.IntegerTypeNodeIF;
class LeafIntTypeParser extends LeafParser {
public LeafIntTypeParser(NodeTypes nodeTypes, RefMappers refMappers) {
super(nodeTypes, refMappers);
}
@Override
public LeafIntTypeParser makeInstance() {
return new LeafIntTypeParser(nodeTypes, refMappers);
}
@Override
public IntTypeEltWrapper node() {
return new IntTypeEltWrapper(IntegerTypeNodeIF.IntType.valueOf(charData.trim()));
}
}