Commit Graph

480 Commits

Author SHA1 Message Date
damirka
3bcb0ef942 fix test expectations 2021-06-03 19:34:10 +03:00
damirka
1478e1be22 fix expectations for parser test 2021-06-02 15:48:11 +03:00
damirka
ecff3d6f2b fixes #995 2021-06-02 14:53:32 +03:00
gluax
bdcd945716 Merge branch 'feature/char-type' of github.com:AleoHQ/leo into feature/char-type 2021-05-25 16:37:55 -04:00
gluax
e53c35f3f2 made suggested changes 2021-05-25 16:36:59 -04:00
damirka
d578a1084e fix field tests for inputs, improves string and char inputs 2021-05-25 21:06:45 +03:00
damirka
760a0d545f Merge branch 'feature/char-type' of github.com:AleoHQ/leo into feature/char-type 2021-05-25 20:59:36 +03:00
damirka
8959d3e44b adds char and string tests for inputs and const inputs 2021-05-25 20:59:24 +03: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
a3416c1e3e added max value for \x7F escape 2021-05-24 15:13:33 +03:00
damirka
497b039d60 added few more test cases for strings 2021-05-24 13:10:28 +03:00
gluax
91f27bc046 explicit type resolves issue, will make bug for implict 2021-05-22 22:26:24 -04:00
gluax
7145a751d9 console.log refactor, concat test... has asg or TIPhase reducer bug 2021-05-22 21:15:07 -04:00
gluax
bce10cc885 quick test fix 2021-05-22 18:21:11 -04:00
gluax
1c57eb4196 input string syntax 2021-05-22 17:57:05 -04:00
gluax
329b330c15 merge remote 2021-05-22 10:47:08 -04:00
gluax
ddbdd485d2 Revert "change pest according to suggestion fixes it"
This reverts commit c8e63a21d6.
2021-05-22 10:41:54 -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
c8e63a21d6 change pest according to suggestion fixes it 2021-05-20 20:10:00 -04:00
gluax
ca59ff3177 tests for now should be changed to use input strings when they are in 2021-05-20 14:30:12 -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
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
gluax
b6479b754f tests are passing interestingly but idk if they should be, == doesn't work for input on fields 2021-05-19 16:48:34 -04:00
damirka
737985034b fix tests 2021-05-19 23:46:47 +03:00
damirka
c4616254d4 follow up, fixed wrong test 2021-05-19 20:53:41 +03:00
damirka
ca6b8695b5 disabled blake2s for now 2021-05-19 20:50:43 +03:00
gluax
08022bb383 char eq operators in, they just call the field ones for now, so when those are in they will work 2021-05-18 12:04:58 -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
damirka
fc385feeca returned parser expectations, removed cwd from compiler tests 2021-05-13 17:07:03 +03:00
damirka
17744f7f7d removes import tests, fix ci, add constraint number check, more tests 2021-05-13 16:56:17 +03:00
gluax
90f9215a0b char lexer/tokenize/parsing done 2021-05-12 15:33:37 -04:00
damirka
e2492ba9e4 more constraints checks 2021-05-12 20:47:03 +03:00
damirka
cb2bd62ea9 Merge branch 'master' into compiler-tests 2021-05-12 20:02:03 +03:00
damirka
6138f8e719 removed old compiler tests 2021-05-12 19:39:27 +03:00
damirka
b20f8a0369 added doc 2021-05-11 21:16:55 +03:00
damirka
5d018f4ad2 u* 2021-05-10 21:11:31 +03:00
damirka
1a15ad3a8f i* 2021-05-10 20:19:19 +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
4fcce10329 remove unnecessary mod 2021-05-06 14:58:36 +03:00
damirka
a39197af62 add const test 2021-05-06 14:52:20 +03:00
damirka
ac57fe6410 test conflicts + clippy 2021-05-06 14:27:42 +03:00
damirka
e3983bfa90 array 2021-05-06 14:01:42 +03:00
gluax
5587d8dd8d don't allow mixing of semi-colons and commas 2021-05-05 14:53:46 -04:00
damirka
91c9969ff9 arrays 1/2 2021-05-05 21:25:24 +03:00
damirka
7f390d4d5c global const 2021-05-05 21:06:15 +03:00
damirka
d5e8fb3718 imports 2021-05-05 19:31:25 +03:00
damirka
925afef17c function 2021-05-05 18:29:44 +03:00
damirka
032341089b program state 2021-05-05 17:48:33 +03:00
damirka
72648c993c program inputs 2021-05-05 17:35:34 +03:00
damirka
dd4d909998 Merge branch 'master' into compiler-tests 2021-05-05 11:56:00 +03:00
damirka
71486fb628 circuits 2021-05-05 11:37:51 +03:00
damirka
8464c5b9d2 i8 + mutability 2021-05-03 17:28:53 +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
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
collin
c728fb4b19 fix error spacing 2021-04-15 12:37:22 -07:00
collin
1fee0d3101 fix parser tests 2021-04-15 12:11:22 -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
gluax
a666ef2a05 regen parser tests 2021-04-14 18:31:27 -04: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
91634d6479 implicit input, removed from function input 2021-04-14 16:00:19 -04:00
Protryon
7aeb8f15ee ns -> namespace 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
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
a4f2101aaf remove if from ternary expression 2021-03-08 14:45:38 -08:00
Protryon
d400764e00 parser rewrite 2021-03-03 09:59:24 -08:00