The EBNF (Extended Backus-Naur Form) grammar for Amos's model specification language is shown below. Hopefully, the informal description of the language provided in other topics will enable you to use the language without referring to the formal grammar.
There are two versions of the EBNF grammar. One version is used when means and intercepts are explicitly estimated. The other version is used when means and intercepts are not explicitly estimated. Both versions of the EBNF grammar are defined in terms of the following tokens. The token definitions are in most cases apparent from the token names.
o@AColon
o@Addition (+)
o@AQuestionMark
o@Assignment (=)
o@Asterisk
o@CloseParenthesis
o@Comma
o@Covariance (<>)
o@Dependency (<-)
o@IntegerNumber
o@LineTerminator
o@OpenParenthesis
o@ParameterName
o@RealNumber
o@SemiColon
o@VariableName