Skip to content

Commit

Permalink
Fix TypeValue
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumeAbel committed Jan 3, 2024
1 parent b6e2464 commit 924b829
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lvtc/src/AST.hs
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ getType _ = Nothing

type Type = String

type TypeValue = Int32 | Bool | String

data Value = Var String | StaticValue TypeValue | Function FuncCall
data Value = Var String | Function FuncCall | Boolean Bool | Integer Int32 | StringView String


-- Function
Expand All @@ -55,4 +53,5 @@ type VarDeclaration = (Var, Value)

type VarAssignation = (Symbol, Value)

data Instruction = Function FuncCall | Return Value | Declaration VarDeclaration | Assignation VarAssignation | Cond Condition
data Instruction =
Function FuncCall | Return Value | Declaration VarDeclaration | Assignation VarAssignation | Cond Condition

0 comments on commit 924b829

Please sign in to comment.