use of cz.cuni.mff.d3s.trupple.parser.identifierstable.types.subroutine.builtin.RandomizeSubroutineDescriptor in project TrufflePascal by Aspect26.
the class IdentifiersTableTP method addBuiltinFunctions.
@Override
protected void addBuiltinFunctions() {
super.addBuiltinFunctions();
try {
this.registerNewIdentifier("random", new RandomSubroutineDescriptor());
this.registerNewIdentifier("randomize", new RandomizeSubroutineDescriptor());
this.registerNewIdentifier("assign", new AssignSubroutineDescriptor());
} catch (LexicalException e) {
throw new PascalRuntimeException("Could not initialize extension builtin functions: " + e.getMessage());
}
}
Aggregations