Programming considerations for grammars

  • Do not write ambiguous grammars, such as:
    • (NO)NOnono
    • [cccd] [XYZ0]
    • K=w K=d
    • ABcd ABxy Abnop
  • After you call the IPRSE_parse function, ensure that your code specifies how to handle each parameter that is defined in the grammar. See Examples for a complete example that shows the grammar, the parsing, and the call to a function to process the parsed output.