Macaulay2 » Documentation
Packages » Parsing > Parser > nullParser
next | previous | forward | backward | up | index | toc

nullParser -- a terminal parser that returns the value nil

Code

../../../../../Macaulay2/packages/Parsing.m2:59:43-59:65: --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:17-59:20

See also

For the programmer

The object nullParser is a parser.