The return value is either 1 or -1, depending on the indicated sign.
|
|
|
../../../../../Macaulay2/packages/Parsing.m2:157:30-157:134: --source code:
optionalSignParser = Parser(c -> if c === null then 1 else if c === "-" then terminalParser(-1) else if c === "+" then terminalParser 1)
The object optionalSignParser is a parser.