aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/julia.rst6
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/julia.rst b/docs/julia.rst
index 054f8627..a441b38b 100644
--- a/docs/julia.rst
+++ b/docs/julia.rst
@@ -97,9 +97,11 @@ Grammar::
Identifier '(' ( Expression ( ',' Expression )* )? ')'
Identifier = [a-zA-Z_$] [a-zA-Z_0-9]*
IdentifierList = Identifier ( ',' Identifier)*
- TypedIdentifierList = Identifier ':' Identifier ( ',' Identifier ':' Identifier )*
+ TypeName = Identifier | BuiltinTypeName
+ BuiltinTypeName = 'bool' | [us] ( '8' | '32' | '64' | '128' | '256' )
+ TypedIdentifierList = Identifier ':' TypeName ( ',' Identifier ':' TypeName )*
Literal =
- (NumberLiteral | StringLiteral | HexLiteral) ':' Identifier
+ (NumberLiteral | StringLiteral | HexLiteral) ':' TypeName
NumberLiteral = HexNumber | DecimalNumber
HexLiteral = 'hex' ('"' ([0-9a-fA-F]{2})* '"' | '\'' ([0-9a-fA-F]{2})* '\'')
StringLiteral = '"' ([^"\r\n\\] | '\\' .)* '"'