Commit Graph

58 Commits

Author SHA1 Message Date
chriseth
5247a6600e Fix function call option parsing and add to grammar. 2020-02-05 16:59:02 +01:00
Daniel Kirchner
d3cbfb0c5c Allow user-defined types as mapping keys in parser and restrict to contracts during type checking. 2020-02-04 17:22:03 +01:00
Gonçalo Sá
b6ddb32497 Update grammar to include special functions (constructor, fallback, receive ether) 2020-01-13 19:41:36 +00:00
Gonçalo Sá
57fcab80fc Update grammar to represent optionality in catch clauses parameter list 2020-01-09 23:12:24 +00:00
chriseth
73c1c481c3 Update grammar 2019-12-12 15:52:37 +01:00
Alexander Arlt
6573638340 Update docs/grammar.txt 2019-11-01 14:54:47 -05:00
chriseth
a54d9d622f Grammar and Documentation. 2019-09-23 17:22:42 +02:00
Daniel Kirchner
4782c800ec Initial introduction of array slices with partial implementation for dynamic calldata arrays. 2019-09-13 10:57:53 +02:00
Gois
f9459fcda9
Fix typo in AssemblySwitch in grammar file 2019-09-03 09:05:25 -03:00
chriseth
436696d3b6 Update assembly grammar part. 2018-11-30 18:24:15 +01:00
hydai
b409faa675
Disallow uppercase X in hex number literals 2018-09-19 22:01:15 +08:00
Daniel Kirchner
1ce3581a52 Accept `address payable` during parsing. 2018-09-11 14:52:23 +02:00
Federico Bond
f2f1462585
Add hex numbers with uppercase X to grammar.txt 2018-09-02 12:57:21 -03:00
Alex Beregszaszi
9436fd9363 grammar: remove stray IdentifierList rule
This was left in #4274 (dbd0723)
2018-07-31 00:28:01 +01:00
Alex Beregszaszi
582ab4eab4 grammar: rename AssemblyLocalBinding to AssemblyVariableDeclaration 2018-07-25 00:08:42 +01:00
Alex Beregszaszi
258e8caa59 grammar: introduce AssemblyExpression and use it in Assignment/LocalBinding 2018-07-25 00:08:08 +01:00
Alex Beregszaszi
ed4022fbca grammar: support all assignment stataments in inline assembly 2018-07-25 00:05:19 +01:00
Daniel Kirchner
f7153ee58a Update documentation. 2018-07-03 15:31:34 +02:00
Christian Parpart
dbd0723a6d grammar: removes the var-keyword from the grammar 2018-07-03 10:53:09 +02:00
mingchuan
b7cafcbdf9
Allow using calldata keyword to specify data location 2018-05-30 18:05:55 +08:00
chriseth
6c8f78fb8f Update documentation for multi variable declaration statement. 2018-05-16 03:52:24 +02:00
sledrho
0da8f1e1e4 Updated StateVariableGrammar rule #3974 2018-04-23 10:04:43 +01:00
Alex Beregszaszi
b540ba527a Disallow empty structs 2018-03-27 15:49:41 +01:00
chriseth
388718b59f Introduce emit statement. 2018-02-22 15:17:30 +01:00
Federico Bond
be065a1243 grammar.txt: Add optional storage location to parameters 2018-01-04 01:47:07 -03:00
Alex Beregszaszi
f22ac8fc96
Merge pull request #3204 from frangio/grammar-incomplete-tuples
Make tuple components optional in documented grammar
2017-11-22 02:22:38 +00:00
Federico Bond
58a0f09f8e Improve rule for decimal numbers in grammar.txt 2017-11-15 17:11:45 -03:00
Francisco Giordano
0b3ef5bbc7 Make tuple components optional in documented grammar 2017-11-14 16:35:50 -03:00
walter-weinmann
afef6faeb6 grammar.txt: spelling error uixed. 2017-10-14 15:48:14 +02:00
Alex Beregszaszi
23c791e4df Add pure to grammar 2017-08-24 13:46:18 +01:00
Alex Beregszaszi
9e8d2a561f Update grammar with view 2017-08-22 18:24:22 +01:00
Alex Beregszaszi
d5f01460f9 Allow constant modifier on state variables in grammar 2017-08-16 21:22:59 +01:00
Alex Beregszaszi
47b6aa1f5b Update grammar to reflect state mutability 2017-08-16 21:19:09 +01:00
Alex Beregszaszi
4acc552e66 Fix the grammar for fixed point types 2017-08-16 16:47:49 +01:00
Federico Bond
9fc4c877d3 Fix and improve grammar.txt 2017-06-22 13:55:08 -03:00
Federico Bond
f0f1e5abfa grammar.txt: Fix grammar for f.gas(p).value(q)() style calls 2017-06-22 13:54:05 -03:00
Federico Bond
1e3b45d61e Fix grammar for tuple expressions 2017-06-19 17:16:45 -03:00
Alex Beregszaszi
eb73015fd2 Support dialect of assembly in grammar 2017-06-15 00:43:19 +01:00
Alex Beregszaszi
9e1d24a7eb Support interface contracts 2017-06-15 00:41:00 +01:00
Alex Beregszaszi
4970d89f3b Support AssemblyLabel in grammar 2017-06-15 00:40:01 +01:00
Alex Beregszaszi
1ceb735fe1 Fix AssemblyAssignment in grammar 2017-06-15 00:39:46 +01:00
Federico Bond
1fc42d733d grammar.txt: Add rule for tuple destructuring 2017-02-08 12:00:30 -05:00
chriseth
0b01678bc3 Correct identifier regex 2017-01-20 19:29:43 +01:00
Federico Bond
26eff0e0d8 grammar.txt: Replace Identifier for Typename in NewExpression 2017-01-11 01:35:29 -03:00
Federico Bond
c15b0fb596 grammar.txt: Add named function arguments 2017-01-11 01:33:55 -03:00
Federico Bond
d61b911a3a grammar.txt: Move StorageLocation? up to VariableDeclaration 2017-01-11 01:33:33 -03:00
chriseth
50c1cfa348 Merge pull request #1527 from federicobond/elementarytypenameconversion
Add ElementaryTypeNameExpression to grammar.txt
2017-01-03 10:36:16 +01:00
Federico Bond
82b9797428 Add ElementaryTypeNameExpression to grammar.txt 2017-01-02 11:45:12 -03:00
chriseth
75a596aba2 Merge pull request #1529 from federicobond/right-shifts
Add missing right-hand side expression for shifts
2017-01-02 12:25:30 +01:00
Federico Bond
1f80dbb39a Add missing right-hand side expression for shifts 2016-12-28 12:53:40 -03:00