Skip to content
This repository has been archived by the owner on May 22, 2023. It is now read-only.

Commit

Permalink
Indicate datatype in AST diagram
Browse files Browse the repository at this point in the history
  • Loading branch information
slyubomirsky committed Oct 25, 2022
1 parent 0ad8686 commit 8da29dc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions relax_spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ Type ::= DynTensorType(ndim: int, dtype: DataType)
| TupleType(fields: [Type])
| FuncType(arg_types: [Type], ret_type: Type, «pure: bool»)
DataType ::=
Int(bitwidth: int)
| Float(bitwidth: int)
| Bool()
| Void()
# expressions
Expr ::= Constant(data: NDArray)
# scoped to functions or SeqExprs
Expand Down

0 comments on commit 8da29dc

Please sign in to comment.