Skip to content

Commit

Permalink
add field access and list patterns are finished
Browse files Browse the repository at this point in the history
Co-authored-by: rvcas <x@rvcas.dev>
  • Loading branch information
MicroProofs and rvcas committed Nov 27, 2022
1 parent 450fba8 commit 1b19831
Show file tree
Hide file tree
Showing 6 changed files with 471 additions and 470 deletions.
2 changes: 1 addition & 1 deletion crates/lang/src/builtins.rs
Expand Up @@ -7,7 +7,7 @@ use uplc::builtins::DefaultFunction;
use crate::{
ast::{ModuleKind, Span},
tipo::{
self, fields::FieldMap, Type, TypeConstructor, TypeInfo, TypeVar, ValueConstructor,
fields::FieldMap, Type, TypeConstructor, TypeInfo, TypeVar, ValueConstructor,
ValueConstructorVariant,
},
IdGenerator,
Expand Down
11 changes: 3 additions & 8 deletions crates/lang/src/ir.rs
Expand Up @@ -3,11 +3,8 @@ use std::sync::Arc;
use uplc::builtins::DefaultFunction;

use crate::{
ast::{
Annotation, Arg, AssignmentKind, BinOp, CallArg, Clause, IfBranch, Pattern, Span,
TypedRecordUpdateArg,
},
tipo::{ModuleValueConstructor, PatternConstructor, Type, ValueConstructor},
ast::{AssignmentKind, BinOp, TypedRecordUpdateArg},
tipo::{Type, ValueConstructor},
};

// []
Expand Down Expand Up @@ -79,7 +76,6 @@ pub enum IR {
DefineFunc {
func_name: String,
module_name: String,
count: usize,
},

DefineConst {
Expand Down Expand Up @@ -131,9 +127,8 @@ pub enum IR {
},

RecordAccess {
label: String,
index: u64,
count: usize,
tipo: Arc<Type>,
},

FieldsExpose {
Expand Down

0 comments on commit 1b19831

Please sign in to comment.