1{-# OPTIONS_GHC -Wall #-}
2module AST.Expression.Optimized
8import qualified Data.Map as Map
10import qualified AST.Expression.General as General
11import qualified AST.Literal as Literal
12import qualified AST.Module.Name as ModuleName
13import qualified AST.Type as Type
14import qualified AST.Variable as Var
15import qualified Optimize.Cases as PM
19 = Literal Literal.Literal
23 | Binop Var.Canonical Expr Expr
24 | Function [String] Expr
26 | TailCall String [String] [Expr]
27 | If [(Expr, Expr)] Expr
29 | Case Expr (PM.DecisionTree Int) (Map.Map Int Expr)
33 | Update Expr [(String, Expr)]
34 | Record [(String, Expr)]
35 | Port (General.PortImpl Expr Type.Canonical)
36 | GLShader String String Literal.GLShaderTipe
41 = Def Facts String Expr
42 | TailDef Facts String [String] Expr
46 { home :: Maybe ModuleName.Canonical
47 , dependencies :: [Var.TopLevel]
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list