Skip to content

Commit

Permalink
Add error (undefined is bad)
Browse files Browse the repository at this point in the history
  • Loading branch information
Saverio976 committed Jan 10, 2024
1 parent 323b37c commit 8802916
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lvtc/src/WatLike.hs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ valueToWatLike (Character x) _ varsIndex =
(varsIndex', indVar) = newIndex varsIndex
ordChar = read (show (ord x)) :: Int32
newDeclaration = Declaration ((show indVar, "Int"), Integer ordChar)
valueToWatLike (StringView _) _ _ = undefined
valueToWatLike (StringView _) _ _ = error "StringView not implemented for now"
valueToWatLike Void _ varsIndex =
(varsIndex', [newDeclaration], Var (show indVar))
where
Expand Down

0 comments on commit 8802916

Please sign in to comment.