The REGEXP_PARSER
signature defines the interface to a parser for a
concrete regular-expression syntax.
Synopsis
signature REGEXP_PARSER
structure AwkSyntax : REGEXP_PARSER
Interface
val scan : (char, 'a) StringCvt.reader -> (RegExpSyntax.syntax, 'a) StringCvt.reader
Description
val scan : (char, 'a) StringCvt.reader -> (RegExpSyntax.syntax, 'a) StringCvt.reader
-
scan getc strm
parses a regular expression from the input streamstrm
using the character readergetc
. If successful, it returnsSOME(re, strm')
, wherere
is the abstract syntax of the regular expression andstrm'
is the residual input stream. It returnsNONE
if there is a syntax error in the input.
Instances
structure AwkSyntax
-
A parser for the regular-expression syntax defined by the AWK language.