Commit Graph

1939 Commits

Author SHA1 Message Date
microproofs
30dd1f60e7 small simplification 2024-05-04 14:04:12 -04:00
microproofs
75b076552c feat: Do a major overhaul on how we check types to allow for match patterns instead of if statements
Also fix one more test
2024-05-04 14:04:12 -04:00
microproofs
3c332ca42a Few more places in codegen where we need to be able to deal with Pair records 2024-05-04 14:04:12 -04:00
microproofs
26f68c2fb4 fix: found various unify and type issues while running tests 2024-05-04 14:04:12 -04:00
microproofs
fd226be51f add Pair type to prelude 2024-05-04 14:04:12 -04:00
microproofs
a8c8cf41cf Finishing up codegen changes for pair 2024-05-04 14:04:12 -04:00
microproofs
963d275bb8 continue progress on pair adding 2024-05-04 14:04:12 -04:00
microproofs
21b60896f0 remove wild card match from tree functions
Start working on supporting Pair clauses
2024-05-04 14:04:12 -04:00
microproofs
f950ae7d3d WIP: add new opcodes to Air and AirTree and update parts of codegen to handle the new pair type 2024-05-04 14:04:12 -04:00
microproofs
9e78f0fc2a update for latest main 2024-05-04 14:04:12 -04:00
microproofs
61a021f9e3 update pair to handle alias 2024-05-04 14:04:12 -04:00
microproofs
d05d8e7de6 Start working on separating pairs from 2 tuples in Aiken
co-authored-by: KtorZ <matthias.benkort@gmail.com>
2024-05-04 14:04:12 -04:00
KtorZ
db8eb6a108 Provide more context for some panics
Actually ran into them both, will open issues about those in a bit.
2024-05-01 12:04:47 +02:00
KtorZ
925a11be69 Check for args length when comparing types. Duh!
Fixes #917.
2024-05-01 10:48:15 +02:00
microproofs
945a3f743b feat: builtin wrapper reduction optimization 2024-04-26 19:24:04 +02:00
Micah Kendall
ff4ddfbe1b Simplifying PR per reviewers request 2024-04-12 21:40:27 -04:00
Micah Kendall
d39dbd6697 fmt 2024-04-12 21:40:27 -04:00
Micah Kendall
d25b8f91c7 feat: Emit keyword 2024-04-12 21:40:27 -04:00
rvcas
17ddbfaafa chore: remove dbg 2024-04-08 14:30:07 -04:00
rvcas
5fc338a1eb test: add some snapshot tests for export type 2024-04-08 14:30:07 -04:00
rvcas
5cb1e23008 fix: program generate should only run after params and args are validated 2024-04-08 14:30:07 -04:00
rvcas
cac119338d feat(blueprint): a memoized program that only runs code gen every other time 2024-04-08 14:30:07 -04:00
rvcas
aa3896e92a feat(export): allow trace levels to be controlled 2024-04-08 14:30:07 -04:00
rvcas
79ccc55499 feat(cli): print Export json to stdout
Co-authored-by: Kasey White <kwhitemsg@gmail.com>
2024-04-08 14:30:07 -04:00
rvcas
dac3308620 feat(Project::export): use Export::from_function and transpose
Co-authored-by: Kasey White <kwhitemsg@gmail.com>
2024-04-08 14:30:07 -04:00
rvcas
8ed930ac5a feat: implement Export object based on blueprint
Co-authored-by: Kasey White <kwhitemsg@gmail.com>
2024-04-08 14:30:07 -04:00
rvcas
3cdb21ad6b feat(blueprint): make a helper public 2024-04-08 14:30:07 -04:00
rvcas
a11b1fa56a chore: cleanup validator creator method 2024-04-08 14:30:07 -04:00
rvcas
9322020a5e feat(blueprint): re-export Error 2024-04-08 14:30:07 -04:00
rvcas
f50f7e42db feat(project): create export type
Co-authored-by: Kasey White <kwhitemsg@gmail.com>
2024-04-08 14:30:07 -04:00
rvcas
9d49be46b8 chore: add some docs to the uplc crate 2024-04-08 14:30:07 -04:00
rvcas
033cc26313 fix: with_project no longer needs a seed 2024-04-08 14:30:07 -04:00
rvcas
1d462314c4 feat: use new generate_raw function 2024-04-08 14:30:07 -04:00
rvcas
7d67f1497c feat(export): implement basic command functionality 2024-04-08 14:30:07 -04:00
rvcas
b63bd9b9e0 feat(cli): add empty export commands 2024-04-08 14:30:07 -04:00
rvcas
b27fcf38e5 fix(check): collapse_links on tuple_index access closes #905 2024-04-02 19:45:16 -04:00
rvcas
7c5b9aa35e feat(lsp): find_node for TypedArgVia 2024-04-02 19:22:19 -04:00
rvcas
d22ee6e086 chore: remove useless clone 2024-04-02 19:04:33 -04:00
rvcas
e02bc2a58a feat(lsp): find_node should traverse tail of list 2024-04-02 17:55:04 -04:00
rvcas
b5f27026e2 fix: confusing public validator closes #902 2024-03-29 11:32:04 -04:00
rvcas
ce2c723d0c chore: remove some dbg macros 2024-03-29 11:28:22 -04:00
microproofs
21b1e29f09 chore: clippy fix 2024-03-27 16:39:52 -04:00
microproofs
a6003c3be9 chore: push changes in blueprint snapshot test 2024-03-27 15:57:29 -04:00
microproofs
a5a0734629 fix: casting a field type to Data with expect and traces on was assuming the raw Data was of type constr 2024-03-27 15:52:23 -04:00
rvcas
075668b52e chore: Release 2024-03-25 22:09:37 -04:00
KtorZ
a3f7b48ec3 Allow downcasting to data in piped function calls.
We have been a bit too strict on disallowing 'allow_cast' propagations. This is really only problematic for nested elements like Tuple's elements or App's args. However, for linked and unbound var it is probably okay, and it certainly is as well for function arguments.
2024-03-25 11:57:13 -04:00
KtorZ
4e8042fd06 chore: Release 2024-03-22 16:10:17 +01:00
KtorZ
96387e3437 Fixes #767
Co-authored-by: @rvcas <x@rvcas.dev>
2024-03-22 16:05:32 +01:00
rvcas
a09069b828 fix: binop associativity formatting
it seems we can fix this by changing which side
gets subtracted by 1 depending on the op associativity.
BinOp::Or & BinOp::And are right associative while the
other bin ops are left associative.

closes #893

Co-authored-by: Kasey White <kwhitemsg@gmail.com>
2024-03-21 20:12:49 -04:00
KtorZ
0f9dbfd874 Fixes #883. 2024-03-21 18:20:19 +01:00