Skip to content

Commit

Permalink
Add info versions of char and str AST builders
Browse files Browse the repository at this point in the history
  • Loading branch information
br4sco committed Nov 21, 2024
1 parent 5966b62 commit 1454a4f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions stdlib/mexpr/ast-builder.mc
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ let tybool_ = use BoolTypeAst in
let tychar_ = use CharTypeAst in
TyChar {info = NoInfo ()}

let itychar_ = use CharTypeAst in
lam i. TyChar {info = i}

let tyunknown_ = use UnknownTypeAst in
TyUnknown {info = NoInfo ()}

Expand All @@ -48,6 +51,8 @@ let tyseq_ = use SeqTypeAst in

let tystr_ = tyseq_ tychar_

let itystr_ = lam i. ityseq_ i (itychar_ i)

let tytensor_ = use TensorTypeAst in
lam ty.
TyTensor {ty = ty, info = NoInfo ()}
Expand Down

0 comments on commit 1454a4f

Please sign in to comment.