summaryrefslogtreecommitdiff
path: root/src/parser.ml
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2025-11-04 14:41:30 +0000
committerGitHub <noreply@github.com>2025-11-04 14:41:30 +0000
commit6e2a6efc5de6c2e395df377fcd273231ad8ed683 (patch)
tree3c837d8e16cb52d1d7bb85ea4afc5ffb913a81d0 /src/parser.ml
parent80e28b1e191fe6f518f7b1ee3d77e672f7397159 (diff)
parent2aea7ddbc092b03dbf07dce385786b9c5c16a881 (diff)
downloadvyos1x-config-6e2a6efc5de6c2e395df377fcd273231ad8ed683.tar.gz
vyos1x-config-6e2a6efc5de6c2e395df377fcd273231ad8ed683.zip
Merge pull request #54 from jestabro/exn-alert
T7915: Use alert exn attribute for audit of uncaught exceptions at compile time
Diffstat (limited to 'src/parser.ml')
-rw-r--r--src/parser.ml3
1 files changed, 3 insertions, 0 deletions
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)