next | previous | forward | backward | up | top | index | toc | Macaulay2 website
Parsing > Parser > nullParser

nullParser -- a terminal parser that returns the value nil

Code

../../../../../../../Macaulay2/packages/Parsing.m2:59:44-59:66: --source code:
terminalParser = val -> new Parser from (c -> if c === null then val)
| symbol   class     value location of symbol
| ------   -----     ----- ------------------                                            
| val    : Symbol -- nil   ../../../../../../../Macaulay2/packages/Parsing.m2:59:18-59:21

See also

For the programmer

The object nullParser is a parser.