1{-# OPTIONS_GHC -Wall #-}
2module AST.Expression.Optimized
3 ( Def(..), Facts(..), dummyFacts
5 , Decider(..), Choice(..)
8import qualified AST.Literal as Literal
9import qualified AST.Module.Name as ModuleName
10import qualified AST.Variable as Var
11import qualified Optimize.DecisionTree as DT
12import qualified Reporting.Region as R
19 = Def Facts String Expr
20 | TailDef Facts String [String] Expr
24 { home :: Maybe ModuleName.Canonical
25 , dependencies :: [Var.TopLevel]
37 = Literal Literal.Literal
41 | Binop Var.Canonical Expr Expr
42 | Function [String] Expr
44 | TailCall String [String] [Expr]
45 | If [(Expr, Expr)] Expr
47 | Case String (Decider Choice) [(Int, Expr)]
51 | Update Expr [(String, Expr)]
52 | Record [(String, Expr)]
53 | Cmd ModuleName.Canonical
54 | Sub ModuleName.Canonical
55 | GLShader String String Literal.GLShaderTipe
56 | Crash ModuleName.Canonical R.Region (Maybe Expr)
62 { _testChain :: [(DT.Path, DT.Test)]
63 , _success :: Decider a
64 , _failure :: Decider a
68 , _tests :: [(DT.Test, Decider a)]
69 , _fallback :: Decider a
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