check_syntax()

Interprets a string as an AEL command and returns whether or not the syntax is valid.

Note The function stores the resulting commands in a temporary ATF file and then removes that ATF file. Also, the string is checked for SYNTAX only. It does not check that all identifiers are defined! See list_undefined() for this type of check. Returns True or False.

Syntax:

check_syntax(string);

where

num is a string argument that contains the text to be checked as AEL syntax.

Example:
decl str = "cos(3+);";
if ( !check_syntax(str) )
  fputs(stdout, "Invalid syntax");
else
  execute(str);        // returns False

Where Used:

Measurement Expressions (Data Display equations and Schematic MeasEqns), Schematic, Layout, Simulation, GUI

 

Privacy Statement  | Terms of Use  | Legal | Contact Us  | © Agilent 2000-2008 

Contents
Additional Resources