@staticmethod<EOL><INDENT>def numeric_literal_to_type(numlit: ShExDocParser.NumericLiteralContext) -> Union[jsg.Integer, jsg.Number]:<DEDENT>
if numlit.INTEGER():<EOL><INDENT>rval = jsg.Integer(str(int(numlit.INTEGER().getText())))<EOL><DEDENT>elif numlit.DECIMAL():<EOL><INDENT>rval = jsg.Number(str(float(numlit.DECIMAL().getText())))<EOL><DEDENT>else:<EOL><INDENT>rval = jsg.Number(str(float(numlit.DOUBLE().getText())))<EOL><DEDENT>return rval<EOL>
numericLiteral: INTEGER | DECIMAL | DOUBLE