HiLang Statement


| Definition | Directive | Enum |

HiLang statements are separated by semi-colons “;”. There can be any number of statements in a “.hilang” file and do not need to be in a specific order, they will be resolved after the source file has been parsed to AST . Each statement can be a definition, directive or enum. Comments in a “.hilang” file are delimited with /* and */ and do not appear in the generated code. Syntax diagrams are read left to right following arrows. The diagram above starts on the left followed by either a definition, directive or enum, followed by a ;. After the ; the syntax either ends or loops around for another definition, directive or enum.

Statements can appear in any order within a HiLang schema model, with references resolved after the source has been parsed. A %function (unary, changed, ERP.ERPFunctions.Changed, Boolean); can appear at the end of a file even if the function is referenced before it is defined. This is especially useful for Master/Detail definitions where the master references a collection of details, and the detail references the master. The is no need for forward declarations.

Copyright © Cepheis 2024