aboutsummaryrefslogtreecommitdiffstats
path: root/docs/julia.rst
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-04-22 00:35:44 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-11-22 11:33:06 +0800
commit29502f9d4476dc8c8b9ee66bfb9309cf209acbce (patch)
treed08806f8c9e316dd125199816bd4b3fd986b7514 /docs/julia.rst
parentb2f2b36b7c77859860a68aa6991a3768a680ad5f (diff)
downloaddexon-solidity-29502f9d4476dc8c8b9ee66bfb9309cf209acbce.tar.gz
dexon-solidity-29502f9d4476dc8c8b9ee66bfb9309cf209acbce.tar.zst
dexon-solidity-29502f9d4476dc8c8b9ee66bfb9309cf209acbce.zip
Include type names in grammar
Diffstat (limited to 'docs/julia.rst')
-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\\] | '\\' .)* '"'