gluaxspeed
1d72107119
inclusive range
2021-07-23 15:14:37 -07:00
gluaxspeed
0ddfddfdc5
parser readme, started ast readme
2021-07-21 01:31:20 -07:00
gluaxspeed
a9593971b9
format string and grammar changes
2021-07-20 14:52:35 -07:00
gluaxspeed
315dcebb34
fmt stable only features, test all the platforms, cc stable
2021-07-14 13:55:01 -07:00
gluax
a0d9047faf
validate that a package being published doesn't conflict with keywords
2021-07-01 13:59:56 -07:00
gluax
bcb50ae27f
change equality_expressions
2021-07-01 13:40:29 -07:00
gluax
12a702896f
clippy fix
2021-06-30 22:20:37 -07:00
gluax
eee9cfc1be
fix parser to match abnf conditional
2021-06-30 22:20:06 -07:00
dependabot[bot]
4fd6cf5a14
Bump indexmap from 1.6.2 to 1.7.0
...
Bumps [indexmap](https://github.com/bluss/indexmap ) from 1.6.2 to 1.7.0.
- [Release notes](https://github.com/bluss/indexmap/releases )
- [Commits](https://github.com/bluss/indexmap/compare/1.6.2...1.7.0 )
---
updated-dependencies:
- dependency-name: indexmap
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-06-30 10:21:58 +00:00
Alessandro Coglio
bc18521699
Fix a typo in comment.
2021-06-21 22:42:53 -07:00
howardwu
750c48ed3b
chore(leo): bump version for new release
2021-06-21 14:28:28 -07:00
gluax
1f35308f47
depend on improved tests branch
2021-06-15 11:44:20 -07:00
gluax
076aafa097
resolve merge conflicts
2021-06-15 11:32:46 -07:00
gluax
d1ca1108fb
scalar chars refactor, some stuff got fixed, some stuff broke
2021-06-11 16:16:21 -07:00
gluax
5b4cc494c1
fix parser bug allowing illegal unicode escape
2021-06-10 10:59:35 -07:00
howardwu
6f5c02ae6d
chore(leo): bump version for new release
2021-06-08 22:51:25 -07:00
damirka
ecff3d6f2b
fixes #995
2021-06-02 14:53:32 +03:00
howardwu
eaadb29448
chore(leo): bump version for new release
2021-05-31 19:53:31 -07:00
gluax
e53c35f3f2
made suggested changes
2021-05-25 16:36:59 -04:00
gluax
bdcf7ce944
resolve direct unicode in a string
2021-05-25 13:49:26 -04:00
gluax
53a668ae14
resolve multiple chars in a char, tests for it
2021-05-25 12:18:01 -04:00
damirka
f36d9b960f
StringLiteral -> StringLit
2021-05-25 16:07:55 +03:00
damirka
a3416c1e3e
added max value for \x7F escape
2021-05-24 15:13:33 +03:00
gluax
7145a751d9
console.log refactor, concat test... has asg or TIPhase reducer bug
2021-05-22 21:15:07 -04:00
gluax
1c57eb4196
input string syntax
2021-05-22 17:57:05 -04:00
gluax
8cb1dc6e30
remove debug stmts
2021-05-22 15:57:25 -04:00
gluax
efc83205f2
string parsing leverages eat_char
2021-05-22 15:53:30 -04:00
gluax
329b330c15
merge remote
2021-05-22 10:47:08 -04:00
gluax
cd95f48f77
forgot to remove debug stmt, and regen tests
2021-05-21 15:11:48 -04:00
gluax
3971a6100d
revert parsing char change, clean up lexing
2021-05-21 14:43:05 -04:00
gluax
cce0f597de
Revert "refactor for better errors, code shouldn't have been in the lexer"
...
This reverts commit 1e1486f4ef
.
2021-05-21 12:33:39 -04:00
gluax
947f13b77b
Merge branch 'feature/string-parsing' of github.com:AleoHQ/leo into feature/string-canonicalization
2021-05-20 12:40:08 -04:00
gluax
4fe91f0f39
string canonicalization to char array
2021-05-20 12:39:36 -04:00
damirka
a5f994ad88
Merge remote-tracking branch 'origin/feature/char-type' into feature/string-parsing
2021-05-20 19:27:51 +03:00
gluax
1e1486f4ef
refactor for better errors, code shouldn't have been in the lexer
2021-05-19 18:14:56 -04:00
damirka
86fc23942b
more comment fixes
2021-05-20 00:36:40 +03:00
damirka
f404c426ed
fix comments
2021-05-20 00:33:39 +03:00
damirka
f96c4ad37e
Merge branch 'feature/char-type' into feature/string-parsing
2021-05-20 00:24:22 +03:00
damirka
ed03a385b5
fix unicode chars
2021-05-19 23:59:54 +03:00
damirka
2f9fde8a0f
removes commented blocks
2021-05-19 23:42:19 +03:00
damirka
39b61a0669
added character parsing
2021-05-19 23:36:53 +03:00
gluax
768a597e04
merge in field operator updates
2021-05-19 13:25:58 -04:00
gluax
6f8df3c84d
clean up lexing char
2021-05-19 12:09:02 -04:00
gluax
8cea284427
wasn't capped at 10FFF for unicode
2021-05-19 11:46:50 -04:00
damirka
32bd282030
1st draft for string parsing and ast type
...
- currently uses back quotes "`" for strings, change later
- ast -> asg unimplemented, strings need to be processed on
canonicalization stage
2021-05-18 18:56:55 +03:00
gluax
1377fc5d75
output file now does 'a', swapped to compiler tests, we fail char tests for now since no constraints
2021-05-14 15:34:39 -04:00
gluax
0435b7ce83
remove octal, fix ascii hex
2021-05-14 13:07:54 -04:00
gluax
733bc90bbe
chars done, should merge in compiler tests
2021-05-13 17:25:33 -04:00
gluax
6e71c8ab4f
addex hex, octal, and direct unicode
2021-05-13 14:33:01 -04:00
gluax
90f9215a0b
char lexer/tokenize/parsing done
2021-05-12 15:33:37 -04:00
damirka
cb2bd62ea9
Merge branch 'master' into compiler-tests
2021-05-12 20:02:03 +03:00
damirka
112efb100c
clippy
2021-05-10 14:12:31 +03:00
gluax
f32a1e9ddb
merge master, add a parser test to try and improve code coverage
2021-05-07 13:34:10 -04:00
damirka
acf5e1dc08
part revert clippy, fix parser
2021-05-06 14:48:41 +03:00
damirka
ac57fe6410
test conflicts + clippy
2021-05-06 14:27:42 +03:00
gluax
29ca0d9a12
no empty import lists, star is a span, grammar fix
2021-05-05 16:10:51 -04:00
gluax
c063200d44
clippy fix
2021-05-05 14:57:48 -04:00
gluax
5587d8dd8d
don't allow mixing of semi-colons and commas
2021-05-05 14:53:46 -04:00
damirka
dd4d909998
Merge branch 'master' into compiler-tests
2021-05-05 11:56:00 +03:00
damirka
0b798dc950
console + definition + core
2021-05-03 16:47:33 +03:00
gluax
e0cf988261
hacky, but optional comma only allowed on last member variable
2021-04-29 15:22:17 -04:00
gluax
282cbb8840
optional comma at end of member variables
2021-04-29 14:10:22 -04:00
gluax
30d80d191f
require comma or semi-colon for now
2021-04-29 14:03:29 -04:00
gluax
438c20c14d
merge master, resolve conflicts, login test is failing
2021-04-26 14:43:21 -04:00
Protryon
534f36a077
compiler tests
2021-04-19 18:08:14 -07:00
Protryon
d933a49eb0
extract test framework
2021-04-19 06:46:22 -07:00
howardwu
4eac040178
chore(leo): bump version for new release
2021-04-15 13:49:42 -07:00
gluax
2f7ed99f76
pull max's required semi-colon branch to ensure sameness, MD file renamed to readme
2021-04-14 18:38:49 -04:00
Protryon
23c7c98b4a
fix many_foos test
2021-04-14 15:27:57 -07:00
Protryon
51920b5df7
require semicolons on return
2021-04-14 15:27:57 -07:00
gluax
6e595bd845
remove escaped double quote for now, address(...) removed
2021-04-14 17:43:02 -04:00
gluax
1803925b08
semi-colon after return statements are required
2021-04-14 16:59:07 -04:00
gluax
11c78da916
formatted string -> renamed format string
2021-04-14 16:15:27 -04:00
gluax
91634d6479
implicit input, removed from function input
2021-04-14 16:00:19 -04:00
collin
da0c7b86c4
remove unused code
2021-04-12 13:15:40 -07:00
collin
a9ee01b418
fix clippy checks
2021-04-12 13:15:40 -07:00
Protryon
7aeb8f15ee
ns -> namespace
2021-04-12 13:15:40 -07:00
Protryon
960f6b2d91
EOF -> Eof
2021-04-12 13:15:40 -07:00
Protryon
aa4c97c9fd
remove full path from span outputs
2021-04-12 13:15:40 -07:00
Protryon
899b8b3efd
tests
2021-04-12 13:15:39 -07:00
howardwu
62ee4c3b8b
chore(leo): bump version for new release
2021-04-09 14:08:52 -07:00
howardwu
bec813b014
chore(leo): bump version for new release
2021-04-09 13:45:30 -07:00
gluax
dbf069d215
no whitepsace between types and integers/group coords
2021-04-02 06:20:08 -04:00
gluax
34f0f1519a
merge latest abnf branch
2021-03-30 19:38:37 -04:00
Protryon
25ae030e1a
fix tokenizer test
2021-03-30 16:24:11 -07:00
gluax
addb54a3f4
no clue what change is causing this
2021-03-30 15:13:02 -04:00
gluax
3eadb89c29
fix inferred, not sure why single line comments are failing
2021-03-30 12:50:57 -04:00
gluax
7fb83b4265
resolve all the merge conflicts
2021-03-30 11:51:31 -04:00
collin
9be13dfd51
update comments
2021-03-29 12:12:38 -07:00
gluax
67f9748866
depend on grammar branch, update parser to reflect
2021-03-29 15:03:04 -04:00
collin
6774cbb01c
fix canonicalization tests
2021-03-29 11:24:58 -07:00
gluax
e1a0838888
global consts work, time to add them to reducers and phases
2021-03-29 12:55:49 -04:00
gluax
dd06df4b1d
it almost fully works, need to fix arrays, circuits and function calls
2021-03-26 15:47:11 -04:00
gluax
5287b238cf
new parser parse global consts
2021-03-26 14:01:10 -04:00
gluax
78b4f39b5a
fix master merge
2021-03-26 12:27:35 -04:00
gluax
406692c2aa
merge master, next is parser
2021-03-26 12:07:48 -04:00
gluax
e4d135d2a8
merge master
2021-03-26 11:33:47 -04:00
Protryon
63d1b1005f
format
2021-03-26 05:19:42 -07:00
Protryon
bbc6121f9d
clippy
2021-03-26 05:19:23 -07:00
Protryon
ee877be2a6
rebase
2021-03-26 05:19:23 -07:00
Protryon
5985d8da41
tendrilize spans
2021-03-26 05:18:55 -07:00
collin
6a1afdabb7
Merge branch 'master' of https://github.com/AleoHQ/leo into feature/constant-mutable-declarations
2021-03-25 22:46:11 -07:00
collin
a66c1633c1
clippy vec_init_then_push allow in parser module
2021-03-25 15:32:58 -07:00
collin
539642c943
clippy vec_init_then_push allow
2021-03-25 15:27:19 -07:00
collin
b5f80c925c
clippy vec_init_then_push more
2021-03-25 15:19:39 -07:00
collin
0addc80080
clippy vec_init_then_push
2021-03-25 15:15:36 -07:00
collin
8bc2140b1e
cargo clippy --examples --all
2021-03-25 14:48:48 -07:00
gluax
001056f8bd
rename-access expression rule and parse function to postfix
2021-03-25 14:34:16 -04:00
gluax
50b37d2672
parse_assign_statment
2021-03-24 15:33:03 -04:00
gluax
3571fa2080
I think this is the best way to handle access_expressions in ABNF to reflect the parser
2021-03-24 15:25:56 -04:00
gluax
f71d77762c
comment out bitwise, mod, &&= and ||= for now
2021-03-24 13:28:01 -04:00
gluax
b96861feea
forgot function doc strings
2021-03-24 12:53:00 -04:00
gluax
007cdfafbd
put parse_array_expression and parse_tupple_expression as their own blocks
2021-03-24 12:50:56 -04:00
gluax
e0200ff789
tentative cast-expression abnf rule, refactor fuzzy rule to conditional expression
2021-03-24 12:33:52 -04:00
gluax
600cf120f9
idents in annotation name and for arguements, no white space between @ and annotation-name
2021-03-24 12:08:07 -04:00
gluax
fd52192d58
_ token in parser and symbol in abnf
2021-03-24 11:40:26 -04:00
gluax
c9daf4a8a9
typed one thing in the comment and another in the if condition whoops
2021-03-23 17:42:54 -04:00
gluax
becafb3798
fix some cases where _ is the only character in the identifier
2021-03-23 17:35:55 -04:00
gluax
98fd0ac4dc
rename function names to reflect abnf more
2021-03-23 17:27:45 -04:00
gluax
026816f085
cleaner way to remove _ from beginning of idents
2021-03-23 16:45:43 -04:00
gluax
62e68f42da
forgot to push new error with previous commit
2021-03-23 16:06:39 -04:00
gluax
8c996fb15d
do not allow _ at start of identifier
2021-03-23 16:02:01 -04:00
gluax
0663227741
order tokens to try and match ABNF
2021-03-23 13:45:57 -04:00
gluax
1adc8cee14
consistent keyword order and names
2021-03-23 12:11:42 -04:00
gluax
0ea4f1e0e3
const_ self as function input properly
2021-03-23 11:49:27 -04:00
gluax
fe8eae981d
const_ self as function input
2021-03-23 11:32:36 -04:00
gluax
ef43230e98
merge master and see if it fixes coverage ci
2021-03-22 11:38:19 -04:00
gluax
1d9befc0ac
function input mutable by default
2021-03-19 11:30:24 -04:00
gluax
b50919085b
deprecate let mut, undeprecate const, let is now mutable by default
2021-03-18 15:19:07 -04:00
Protryon
0c72e3e264
ident -> identifier
2021-03-12 10:40:05 -08:00
Protryon
344f6a2d8e
transparent keywords
2021-03-12 04:29:25 -08:00
bors[bot]
9a62585c07
Merge #757
...
757: Readd executable parser r=collinc97 a=Protryon
To install the parser do: `$ cargo install --path . --example parser` within the `<leo repo>/parser` directory. Executable is called `parser`.
Co-authored-by: Protryon <max.bruce12@gmail.com>
2021-03-10 20:54:32 +00:00
Protryon
4d6c44a021
readd executable parser
2021-03-10 04:23:46 -08:00
collin
eb15f247be
fix parser benchmark
2021-03-09 16:18:47 -08:00
Protryon
a4f2101aaf
remove if from ternary expression
2021-03-08 14:45:38 -08:00
Protryon
2a616eb13d
absolute path for parser tests
2021-03-07 10:17:33 -08:00
Protryon
b60affc40b
fix ci test
2021-03-07 07:20:08 -08:00
Protryon
a6bf66f864
fix tests
2021-03-07 06:48:02 -08:00
Protryon
1f49d8bc44
Merge branch 'tokenizer' of github.com:AleoHQ/leo into tokenizer
2021-03-07 06:27:57 -08:00
Protryon
f5187fc872
fix some failing tests
2021-03-07 06:27:42 -08:00
collin
76afaf6167
add comments to parser tokenizer
2021-03-05 15:01:43 -08:00
collin
ef91489829
add comments to parser types
2021-03-05 14:43:27 -08:00
collin
7caf53bb31
add comments to parser statements
2021-03-05 14:38:40 -08:00
collin
01e2a13170
add comments to parser file
2021-03-05 14:26:59 -08:00
collin
4fada913fb
add comments to parser expression
2021-03-05 14:09:14 -08:00
Protryon
f86e03f4b7
fix spans for comments
2021-03-05 09:53:06 -08:00
Protryon
d14a3a666b
format
2021-03-05 09:23:38 -08:00
Protryon
e492950106
fix package names
2021-03-05 09:16:49 -08:00
collin
ed41a55c47
add comments to context
2021-03-04 16:47:41 -08:00
collin
d7d84c0ea7
fix test build issues. parser errors on dash + number names
2021-03-04 15:58:00 -08:00