|
Rules Syntax Checker
M1 N6 N5 _2 r$ J: PThe rules_syntax_checker is a utility you can run on a rule file to validate the syntax of its; W8 ^# P1 R) Y
statements. The full path to this executable is
0 V$ H( Q! s* q$MGC_HOME/shared/pkgs/icv.${VCO}/tools/misc/rules_syntax_checker. As shown in the2 O; }# z# V2 h4 h
following example, this utility prompts you for the name of the rule file and then runs the check." y" _, V3 m! v# b& O
It creates a zero length file named “compiled” if you answer “y(es)”.
( I0 R6 }* s# w _+ i) O" a& Lrules_syntax_checker6 Y' D n" ?( Q
Please input the file name (CTRL-D to abort): rule_file7 X; k1 m8 N, L: v+ `
13-72 Calibre Verification User’s Manual
6 S; w5 U, }+ g% t7 KUtilities
: K$ D i3 T9 P6 T! S; ERules Syntax Checker
4 `' b" {, W& n5 n. rSuccessful compilation; compilation time = 0.029 S3 h1 z X2 Z) |/ H: D
You can also specify the pathname to the rule file upon invocation, as follows:# k" F* ^5 X$ R N
rules_syntax_checker rule_file9 I: j: a" t m' X9 |
You may want to do this if you are writing a shell script to automate the process.! g' D' h" O+ B9 W3 A5 s* W
Encountering an error terminates the check. The rule file compiler generates an error message1 T% r: I4 w# C7 J6 D! c
for the first such mistake it finds where the offending word sequence appears in the error. E+ k% o9 A# x
message. For example:
- b) _: h: c0 B& P: {& TError INP1 on line 15 of rule_file - superfluous or invalid input object:: A0 K2 }1 r& f$ u4 Z, A- f
SORCE.
5 N+ I; }/ A5 e- ?1 y- |8 N" g- }After correcting the first such error, recheck the rule file to find the next error. Repeat this
+ l; A9 p+ R9 eprocess until the rule file generates no syntax errors. |
|