From 2aea7ddbc092b03dbf07dce385786b9c5c16a881 Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Mon, 27 Oct 2025 22:42:37 -0500 Subject: T7915: add compiler alerts and annotations --- src/parser.ml | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/parser.ml') diff --git a/src/parser.ml b/src/parser.ml index f659b34..e1c86e6 100644 --- a/src/parser.ml +++ b/src/parser.ml @@ -23,6 +23,9 @@ let rec parse vy_inside_node lexbuf (checkpoint : Config_tree.t I.checkpoint) = raise (Syntax_error (None, "invalid syntax (parser rejected the input)")) let from_string s = + (* raises: + [Syntax_error] from parse + *) let vy_inside_node = false in let lexbuf = Lexing.from_string s in parse vy_inside_node lexbuf (Vyos1x_parser.Incremental.config lexbuf.lex_curr_p) -- cgit v1.2.3