|
Rules Syntax Checker
7 x H! ]' F- aThe rules_syntax_checker is a utility you can run on a rule file to validate the syntax of its$ Q4 p; H$ q7 b2 ~+ ~
statements. The full path to this executable is
8 D+ W; E$ _5 P* D: w6 r$MGC_HOME/shared/pkgs/icv.${VCO}/tools/misc/rules_syntax_checker. As shown in the& w' D9 P4 R/ X" ~9 N7 q/ s
following example, this utility prompts you for the name of the rule file and then runs the check.2 F$ x# c& F$ t
It creates a zero length file named “compiled” if you answer “y(es)”.
0 ]5 k! V9 i3 F. mrules_syntax_checker; ?" o6 u/ C: r# @: k
Please input the file name (CTRL-D to abort): rule_file/ ?0 T2 h. b$ o
13-72 Calibre Verification User’s Manual5 F3 @! |' `# w% b
Utilities
6 W w. Z% L- G5 q+ xRules Syntax Checker
, [- W( t @! eSuccessful compilation; compilation time = 0.022 g# a. t1 i5 e& a" k! z
You can also specify the pathname to the rule file upon invocation, as follows:, I& }$ Q% Y6 U) T
rules_syntax_checker rule_file
2 D5 v Q& {$ u9 `7 `, @6 G- NYou may want to do this if you are writing a shell script to automate the process.: x0 ?; s% V6 G- y
Encountering an error terminates the check. The rule file compiler generates an error message1 [! B* C7 I( i, S2 {
for the first such mistake it finds where the offending word sequence appears in the error
" `, k- C% t1 }/ Q' b7 Imessage. For example:
, T' j0 H5 I. {: hError INP1 on line 15 of rule_file - superfluous or invalid input object:) V* C) T" {9 r8 i* i* Q
SORCE.
9 e9 u u, q+ D( B; M; mAfter correcting the first such error, recheck the rule file to find the next error. Repeat this
( A+ Q" B: w c8 oprocess until the rule file generates no syntax errors. |
|