|
Rules Syntax Checker' {( V( p3 _( Y( w0 [
The rules_syntax_checker is a utility you can run on a rule file to validate the syntax of its
& m& Q/ w3 y9 estatements. The full path to this executable is
% w# t; J! f& a1 \1 X, W$MGC_HOME/shared/pkgs/icv.${VCO}/tools/misc/rules_syntax_checker. As shown in the0 K, Y( q: p3 s' h" k, D4 K: b6 M
following example, this utility prompts you for the name of the rule file and then runs the check.4 V9 t$ }5 T/ M) R& Z0 P
It creates a zero length file named “compiled” if you answer “y(es)”.
- ]/ l& l4 h" G* c( K3 P+ Erules_syntax_checker8 v* W$ u7 u0 W3 a0 i0 ?# |* H1 M
Please input the file name (CTRL-D to abort): rule_file0 A# E( J8 D9 B k8 F* I/ {
13-72 Calibre Verification User’s Manual! \7 K2 H9 d$ ]: I, Z- \; ?
Utilities
7 [6 z5 F2 R1 Q' ~" FRules Syntax Checker2 S7 u2 ]5 H( r) w5 I0 o; |: b
Successful compilation; compilation time = 0.02, r3 h' O: q. K q# O- r
You can also specify the pathname to the rule file upon invocation, as follows:9 ]9 w( F( N; ^$ [
rules_syntax_checker rule_file) a, W0 G" k" V" e; M
You may want to do this if you are writing a shell script to automate the process.) }- m* ?3 M! ^( `4 k; d3 k; h
Encountering an error terminates the check. The rule file compiler generates an error message
+ t* u+ x" y2 J9 L! k @2 sfor the first such mistake it finds where the offending word sequence appears in the error
( x4 S2 J9 |, c" } tmessage. For example:) L2 m/ h# N% V( x
Error INP1 on line 15 of rule_file - superfluous or invalid input object:- V8 {, h; G+ W; |
SORCE.; B+ }" k4 n T1 _/ [. L
After correcting the first such error, recheck the rule file to find the next error. Repeat this
$ X% q9 r0 R, Rprocess until the rule file generates no syntax errors. |
|