collin
0a3fb30035
package names cannot start with a number
2021-04-07 17:18:14 -07:00
collin
34fd7283c8
fix package name check
2021-04-07 17:10:07 -07:00
Collin Chin
23bca1e595
Merge pull request #796 from ljedrz/align_integers_with_snarkvm
...
Align with snarkVM's Integer changes
2021-04-07 15:28:39 -07:00
Collin Chin
bd7ec477c9
Merge pull request #837 from AleoHQ/bug-duplicate-functions
...
Adds error when function defined more than once
2021-04-07 14:32:47 -07:00
collin
aa0e576773
edit duplicate function message
2021-04-07 14:31:44 -07:00
Collin Chin
68419f4e10
Merge pull request #835 from AleoHQ/feature/abnf-doc-improvements
...
[ABNF] Improve the documentation of the grammar and fix a rule
2021-04-07 14:26:52 -07:00
gluax
55dae9bc14
push some expression solving, start statements
2021-04-07 13:21:10 -04:00
damirka
8ac7440daa
adds test, expects asg error
2021-04-07 20:20:58 +03:00
damirka
f55e880c43
adds check for already existing functions
2021-04-07 19:39:53 +03:00
ljedrz
dee5f7dc15
fix: use a hand-written impl of get_index
...
Signed-off-by: ljedrz <ljedrz@gmail.com>
2021-04-07 10:01:26 +02:00
ljedrz
670e3c0b47
deps: update snarkVM
...
Signed-off-by: ljedrz <ljedrz@gmail.com>
2021-04-07 10:01:26 +02:00
ljedrz
74f02411e8
fix: align with snarkVM's Integer changes
...
Signed-off-by: ljedrz <ljedrz@gmail.com>
2021-04-07 10:01:26 +02:00
Alessandro Coglio
d7d15b1bc4
[ABNF] Regenerate markdown file.
2021-04-06 16:41:12 -07:00
Alessandro Coglio
f19af30f0e
[ABNF] Fix rule for affine group literals.
...
This was
affine-group-literal = "(" group-coordinate "," group-coordinate ")" %s"group"
instead of
affine-group-literal = "(" group-coordinate "," group-coordinate %s")group"
(note the different ending).
This change should have been part of the PR for whitespace in group literals,
but apparently I failed to do that, along with the other changes.
This commit rectifies that omission.
2021-04-06 16:39:07 -07:00
Alessandro Coglio
7da8a3c033
[ABNF] Improve consistency of documentation.
2021-04-06 16:37:18 -07:00
Alessandro Coglio
5f85308444
[ABNF] Improve the syntactic grammar section documentation.
...
Update some comments that were now out of date.
Clarify some text.
Fix some typos.
2021-04-06 16:35:47 -07:00
Alessandro Coglio
f0bac48093
[ABNF] Improve lexical grammar documentation.
...
Fix some typos, clarify some text, remove/update some obsolete references.
2021-04-06 16:03:28 -07:00
Alessandro Coglio
e035743f96
[ABNF] Improve naming convention section of documentation.
...
Some tweaks and some clarifications.
2021-04-06 15:19:41 -07:00
Collin Chin
e31bace4cb
Merge pull request #830 from AleoHQ/dependabot/cargo/abnf-0.10.2
...
Bump abnf from 0.10.1 to 0.10.2
2021-04-06 15:15:53 -07:00
Collin Chin
1867cf88b7
Merge pull request #827 from AleoHQ/feature/abnf-const-self
...
[ABNF] Allow const self and other small fixes/improvements
2021-04-06 15:15:33 -07:00
Alessandro Coglio
fdaab572f9
[ABNF] Improve operator precedence section of documentation.
...
Fix a typo. Tweak some text layout.
2021-04-06 15:14:08 -07:00
Alessandro Coglio
11c0d60021
[ABNF] Improve structure section of documentation.
...
Make this more concise and clear by just presenting the lexical and syntactic
grammar as the way we define the Leo syntax, as opposed to discussing
alternatives like PEGs.
2021-04-06 14:59:52 -07:00
Alessandro Coglio
c7fb2905c0
[ABNF] Improve background section of documentation.
...
Explicate references to RFCs a bit.
Use the term 'sequence of terminals' instead of 'string' to avoid any confusion.
(Still use 'string' to refer to the actual strings in double quotes that are
part of the ABNF notation itself.)
2021-04-06 14:45:23 -07:00
Alessandro Coglio
742e3b33ea
[ABNF] Improve introduction section of documentation.
...
Update to say that grammar is no longer just a draft.
Put primary motivation and purpose of grammar first.
Mention use in formalization second, and slightly simplify that part, given that
the formalization is not public yet.
2021-04-06 14:43:55 -07:00
Alessandro Coglio
48635e5dbe
[ABNF] Fix typos in documentation.
2021-04-06 14:22:15 -07:00
gluax
ac9414590f
reduce type and the basis for type_inference ast
2021-04-06 17:09:36 -04:00
gluax
541b83d492
working on directing expressions so far
2021-04-06 14:07:37 -04:00
dependabot-preview[bot]
751b42ab5b
Bump abnf from 0.10.1 to 0.10.2
...
Bumps [abnf](https://github.com/duesee/abnf ) from 0.10.1 to 0.10.2.
- [Release notes](https://github.com/duesee/abnf/releases )
- [Commits](https://github.com/duesee/abnf/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-04-06 10:36:36 +00:00
damirka
bbc70d927b
build -> compiling in log
2021-04-06 10:51:05 +03:00
Alessandro Coglio
880f2cd200
[ABNF] Remove explicit author info, as discussed.
2021-04-05 21:55:19 -07:00
Alessandro Coglio
797e8ceffd
[ABNF] Tweak some layout.
...
Just for consistency with the rest of the file.
2021-04-05 21:54:18 -07:00
Alessandro Coglio
c0ea8798a2
[ABNF] Remove leftover reference.
...
This was uncovered by running the grammar through the ACL2 build: among other
things, the build checks that every nonterminal referenced in the right side of
each rule has a definition in the grammar.
2021-04-05 21:47:28 -07:00
Alessandro Coglio
5f875a4e93
[ABNF] Allow const self.
...
This still needed to be updated. The rules only supported self and mut self.
2021-04-05 21:27:37 -07:00
Collin Chin
9b9fe0b8c7
Merge pull request #822 from AleoHQ/dependabot/cargo/abnf-0.10.1
...
Bump abnf from 0.10.0 to 0.10.1
2021-04-05 21:13:23 -07:00
Collin Chin
ea5bc5d693
Merge pull request #825 from AleoHQ/bug/815-mutable-method-imuttable-context
...
Bug/815 mutable method imuttable context
2021-04-05 21:12:39 -07:00
Collin Chin
f3f569b233
Merge pull request #824 from AleoHQ/feature/no-space-between-literals
...
Feature/no space between literals
2021-04-05 21:11:57 -07:00
Collin Chin
0682dd01ee
Merge pull request #816 from AleoHQ/unused-code-bye-bye
...
Unused code removal + improving coverage
2021-04-05 21:02:04 -07:00
Collin Chin
8396014e32
Update verification_key.rs
2021-04-05 21:01:49 -07:00
Alessandro Coglio
b535a5fde3
[ABNF] Allow spaces in affine group literals.
2021-04-05 13:55:05 -07:00
gluax
38c36cc305
tests for all the integers
2021-04-05 12:59:08 -04:00
gluax
f0ce9d400e
testing the changes
2021-04-05 12:54:27 -04:00
damirka
2578be4287
fix test
2021-04-05 19:37:16 +03:00
damirka
03b2af4aaa
Merge branch 'master' into unused-code-bye-bye
2021-04-05 16:40:30 +03:00
damirka
a588c18100
clippy
2021-04-05 16:39:38 +03:00
damirka
044dc96e58
adds tests for outputfile
2021-04-05 16:08:54 +03:00
dependabot-preview[bot]
b51471a6a8
Bump abnf from 0.10.0 to 0.10.1
...
Bumps [abnf](https://github.com/duesee/abnf ) from 0.10.0 to 0.10.1.
- [Release notes](https://github.com/duesee/abnf/releases )
- [Commits](https://github.com/duesee/abnf/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-04-05 10:40:52 +00:00
gluax
dbf069d215
no whitepsace between types and integers/group coords
2021-04-02 06:20:08 -04:00
gluax
f60e4331c7
merge master
2021-04-02 04:51:57 -04:00
gluax
f44dcc1e96
test for bug
2021-04-02 04:50:14 -04:00
gluax
952ce8c17e
allow mutable method from immutable context
2021-04-02 04:45:02 -04:00