grammar VariableParser;

varlist: var (',' var)*; //Build list of variables
var:    ID vartype;
vartype: ':' type_info
       | defaulttype;
defaulttype: ;
type_info: bool_type
         | real_type
         | fixed_type ;

bool_type: 'bool';

real_type: 'real';

fixed_type: 'fixedt(' NAT ',' NAT ')'
          | 'fixedt(' NAT ',' NAT ',' NAT ')';

ID: [a-zA-Z][a-zA-Z0-9]*; //Variable identifier.  Start with letter, then alpha numerical allowed.
NAT: [0-9]+;
WS : [ \t\r\n]+ -> skip ; // skip spaces, tabs, newlines
