|
|
@ -9,6 +9,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
%{
|
|
|
|
%{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
open! IStd
|
|
|
|
|
|
|
|
|
|
|
|
let formal_params : (ALVar.t list) ref = ref []
|
|
|
|
let formal_params : (ALVar.t list) ref = ref []
|
|
|
|
|
|
|
|
|
|
|
|
let is_not_infer_reserved_id id =
|
|
|
|
let is_not_infer_reserved_id id =
|
|
|
@ -19,7 +21,7 @@
|
|
|
|
else ()
|
|
|
|
else ()
|
|
|
|
|
|
|
|
|
|
|
|
let is_defined_identifier id =
|
|
|
|
let is_defined_identifier id =
|
|
|
|
if (List.mem (ALVar.Var id) !formal_params) then
|
|
|
|
if (List.mem ~equal:ALVar.equal !formal_params (ALVar.Var id)) then
|
|
|
|
Logging.out "\tParsed exp '%s' as variable" id
|
|
|
|
Logging.out "\tParsed exp '%s' as variable" id
|
|
|
|
else
|
|
|
|
else
|
|
|
|
raise (Ctl_parser_types.ALParsingException
|
|
|
|
raise (Ctl_parser_types.ALParsingException
|
|
|
@ -149,7 +151,7 @@ clause:
|
|
|
|
| "severity" -> ALVar.Severity
|
|
|
|
| "severity" -> ALVar.Severity
|
|
|
|
| "mode" -> ALVar.Mode
|
|
|
|
| "mode" -> ALVar.Mode
|
|
|
|
| "path" -> ALVar.Path
|
|
|
|
| "path" -> ALVar.Path
|
|
|
|
| _ -> IStd.failwithf "[ERROR] string '%s' cannot be set in a SET clause. \
|
|
|
|
| _ -> failwithf "[ERROR] string '%s' cannot be set in a SET clause. \
|
|
|
|
Use either of: \
|
|
|
|
Use either of: \
|
|
|
|
'message', 'mode', 'severity', 'suggestion' or 'path'" $2 in
|
|
|
|
'message', 'mode', 'severity', 'suggestion' or 'path'" $2 in
|
|
|
|
CTL.CDesc (alvar, $4) }
|
|
|
|
CTL.CDesc (alvar, $4) }
|
|
|
|