Lex a full algorithm, up to and including the } closing its body, so that text after it in
the enclosing comment is never lexed. Stops early, without consuming it, at a *) reached before
that }, leaving the parser to report the unclosed body.
Equations
- SurfacePlusCal.Lexer.lexAlgorithm lexTLAToken = SurfacePlusCal.Lexer.lexAlgorithm.go✝ lexTLAToken #[] 0
Instances For
def
SurfacePlusCal.Parser.parseAlgorithm
(tryParseAnnotations :
ParserT
(ParseError (TokenStream (Located' (SurfaceTLAPlus.Token (Located' Token))))
(Located' (SurfaceTLAPlus.Token (Located' Token))))
(TokenStream (Located' (SurfaceTLAPlus.Token (Located' Token)))) (Located' (SurfaceTLAPlus.Token (Located' Token)))
ParserWarningM (List SurfaceTLAPlus.CommentAnnotation))
(parseExpression :
ParserT
(ParseError (TokenStream (Located' (SurfaceTLAPlus.Token (Located' Token))))
(Located' (SurfaceTLAPlus.Token (Located' Token))))
(TokenStream (Located' (SurfaceTLAPlus.Token (Located' Token)))) (Located' (SurfaceTLAPlus.Token (Located' Token)))
ParserWarningM (SurfaceTLAPlus.Expression (List SurfaceTLAPlus.CommentAnnotation)))
:
Equations
- One or more equations did not get rendered due to their size.