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

deadParser -- a parser which accepts no tokens and is not in a terminal state

Description

i1 : peek deadParser "a"

o1 = null
i2 : peek deadParser null

o2 = null

Code

../../../../../../../Macaulay2/packages/Parsing.m2:57:24-57:27: --source code:
deadParser = Parser (c -> null)

For the programmer

The object deadParser is a parser.