Commit Graph

604 Commits

Author SHA1 Message Date
Felipe g
a899d2d474 feat: improved erasure and other aspects 2022-11-04 09:43:44 -03:00
Felipe g
bbdd651387 feat: finished first version of error messages from checker 2022-11-01 14:18:54 -03:00
Felipe g
795116773a wip: just trying to make incremental compilation with salsa 2022-10-31 23:14:11 -03:00
Felipe g
948f865217 feat: reexport tree 2022-10-31 11:00:32 -03:00
Felipe g
68d28d8a6a feat: simple erasure 2022-10-28 12:07:58 -03:00
Felipe G
b662eefcb5
Merge pull request #410 from developedby/kdl-hash-long-names
feat: Use hash of name instead of random chars for long kdl names
2022-10-27 09:25:07 -03:00
Felipe g
cfb2dbad3d style: changed some structures 2022-10-26 15:21:44 -03:00
Nicolas Abril
88f6ac73b0 feat: Use hash of name instead of random chars for long kdl names 2022-10-26 14:29:46 +02:00
Felipe g
2074f2c4cf style: changed some constructions and added comments 2022-10-25 12:06:49 -03:00
Felipe g
0af06eea49 feat: finished match 2022-10-24 15:31:49 -03:00
Felipe g
a8bbb9d26e fix: changed hashmaps to fxhashmap and removed code from checker.hvm 2022-10-21 14:17:42 -03:00
Felipe g
28a1c94db4 feat: made checker generator 2022-10-21 11:40:58 -03:00
Felipe g
31671c2e71 style: format 2022-10-20 12:50:35 -03:00
Felipe g
ccced7fd2b feat: better error message when cannot find the definition 2022-10-20 10:51:59 -03:00
Felipe g
77e0b63eff fix: match and open 2022-10-20 10:33:27 -03:00
Felipe g
e829bcf042 feat: finished desugaring 2022-10-20 10:28:26 -03:00
Felipe g
23bd93c18b feat: fixed sttm desugaring 2022-10-19 15:20:01 -03:00
Felipe g
9e2df6c7e1 feat: implemented some desugar things 2022-10-19 15:05:44 -03:00
Felipe g
5d86855a41 feat: started desugaring 2022-10-18 14:03:04 -03:00
Felipe g
da2596b954 style: format 2022-10-17 11:14:01 -03:00
Felipe g
bb4e61fabc feat: added error message to detect when a function or constructor is defined multiple times 2022-10-17 11:12:03 -03:00
Felipe g
6b39d4b79c feat: started glossary parsing 2022-10-17 09:53:36 -03:00
Felipe g
94d279c4f0 fix: fixed some parser issues 2022-10-17 09:53:26 -03:00
Felipe g
471b73f1b2 feat: made let bindings with destructuring for record constructors 2022-10-14 14:27:55 -03:00
Felipe G
9b15b8f78b
Merge pull request #405 from developedby/inline-simple
Accept more cases of inlined functions
2022-10-14 13:15:22 -03:00
Felipe g
13f017c375 chore: removed query and macros from the toml because they're not being used 2022-10-14 13:13:58 -03:00
Felipe g
ea57a81409 chore: fmt 2022-10-14 13:13:58 -03:00
Felipe g
769d891bf6 feat: added a bunch of structures to the parsing step 2022-10-14 13:13:58 -03:00
Felipe g
780ad2c417 feat: modified case parsing and removed open 2022-10-14 13:13:58 -03:00
Felipe g
6b72ae1bb8 fix: added no-code property to kind-driver 2022-10-14 13:13:58 -03:00
Felipe g
a894540939 fix: fixed problem with ascii validation in lexer 2022-10-14 13:13:58 -03:00
Nicolas Abril
eb0cc9a768 feat: Accept more cases of inlined functions 2022-10-14 11:03:07 +02:00
Nicolas Abril
0337096aff refactor: Add description to kdl compilation functions 2022-10-14 11:02:01 +02:00
Nicolas Abril
6fcfca0308 feat: indent dup terms in generated kdl files 2022-10-14 10:54:25 +02:00
Felipe G
bad25400d7
chore: update src/kind-parser/src/errors.rs
Co-authored-by: Martin Mauch <martin.mauch@gmail.com>
2022-10-13 16:03:51 -03:00
Felipe g
a16a7cb514 fix: better error messages for unclosed parenthesis and string errors and no_code in end of line errors 2022-10-13 10:10:21 -03:00
Felipe g
56e5878fb5 fix: fixed bug with unicode width of characters like chinese ones that takes a lot of space 2022-10-13 10:09:29 -03:00
Felipe g
ef3097067e chore: fmt 2022-10-13 08:26:21 -03:00
Felipe g
c1d51d9827 feat: made simple cli 2022-10-13 08:26:11 -03:00
Felipe g
912b9fccde chore: fmt 2022-10-13 08:25:29 -03:00
Felipe g
e2a4df9577 feat: finished a simple version of the query handler 2022-10-12 19:51:34 -03:00
Felipe G
bb38de7585
Merge pull request #403 from developedby/inline-attr
feat: add inline attr, separate kdl compiler passes
2022-10-12 14:04:39 -03:00
Nicolas Abril
d82ed4d61a feat: add inline attr, separate kdl compiler passes
Add an inline attribute that substitutes a function
  application for the body of the rule that matches.
This is still limited and rejects many easily
  rewritable programs.
We would need to compile the intermediate terms to HVM
  and normalize them then to properly and efficiently
  handle all valid inlining cases.

I also separated each of the passes of the kdl compiler
  to separate functions that go over the whole AST.
This is probably less efficient, but makes it easier
  to reuse this code for other targets and to develop
  new passes.

This commit also does some light refactoring of other
  things surrounding the kdl compiler.
2022-10-12 18:01:18 +02:00
Felipe g
77a452e5fb feat: started query system 2022-10-11 17:52:52 -03:00
Felipe g
59c4281aae feat: started unbound variable checkage 2022-10-10 12:04:38 -03:00
Felipe g
82f1c41f79 fix: fixed capitalized names 2022-10-10 12:04:20 -03:00
Felipe g
921e70d668 fix: changed span to range because generated spans make no sense in the concrete tree 2022-10-09 19:35:50 -03:00
Felipe g
dbf740ff5b chore: removed grammar and fixed lockfile 2022-10-09 15:16:05 -03:00
Felipe g
e742466d5c fix: parser and expanded tree for more nodes 2022-10-09 15:11:36 -03:00
Felipe g
938fec8ca4 feat: finished report module 2022-10-09 15:10:59 -03:00