<?xml version="1.0" encoding="utf-8" ?> <!-- for emacs: -*- coding: utf-8 -*- --> <!-- Apache may like this line in the file .htaccess: AddCharset utf-8 .html --> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg-flat.dtd" > <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head><title>nullParser -- a terminal parser that returns the value nil</title> <link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/> </head> <body> <table class="buttons"> <tr> <td><div><a href="_future__Parser.html">next</a> | <a href="_terminal__Parser.html">previous</a> | <a href="_future__Parser.html">forward</a> | <a href="_terminal__Parser.html">backward</a> | <a href="___Parser.html">up</a> | <a href="index.html">top</a> | <a href="master.html">index</a> | <a href="toc.html">toc</a> | <a href="http://www.math.uiuc.edu/Macaulay2/">Macaulay2 web site</a></div> </td> </tr> </table> <div><a href="index.html" title="a framework for building parsers">Parsing</a> > <a href="___Parser.html" title="the class of all parsers">Parser</a> > <a href="_null__Parser.html" title="a terminal parser that returns the value nil">nullParser</a></div> <hr/> <div><h1>nullParser -- a terminal parser that returns the value nil</h1> <div><!--empty documentation body--></div> <div class="single"><h2>See also</h2> <ul><li><span><a href="_nil.html" title="a symbol a parser may return to indicate acceptance of the empty string of tokens">nil</a> -- a symbol a parser may return to indicate acceptance of the empty string of tokens</span></li> </ul> </div> <div class="waystouse"><div class="single"><h2>Code</h2> <pre>../Parsing.m2:56:44-56:66: --source code: terminalParser = val -> new Parser from (c -> if c === null then val) | symbol class value location of symbol | ------ ----- ----- ------------------ | val : Symbol -- nil ../Parsing.m2:56:18-56:20</pre> </div> </div> </div> </body> </html>