fail

Original VisualText 2 documentation (2001–2013). For the current NLP++ tools, see visualtext.org.

Purpose

Exit from a region or rule in a pass file.

Syntax

NULL = fail()

Returns

Remarks

Constrained to appear directly in the CHECK region, not within functions defined in the DECL region.

Example

@CHECK
fail
(); # Reject the current rule match.
@@CHECK

See Also

 exitpass, succeed, or, Phrase Element Modifier fails