1{-# OPTIONS_GHC -Wall #-}
2module SourceSyntax.Literal where
5import SourceSyntax.PrettyPrint
6import qualified Text.PrettyPrint as PP
8data Literal = IntNum Int
13 deriving (Eq, Ord, Show)
15instance Pretty Literal where
19 FloatNum n -> PP.double n
20 Chr c -> PP.text . show $ c
21 Str s -> PP.text . show $ s
22 Boolean bool -> PP.text (show bool)
26glTipeName :: GLTipe -> String
27glTipeName V3 = "MJS.V3"
28glTipeName M4 = "MJS.M4x4"
30data GLShaderTipe = GLShaderTipe
31 { attribute :: Map String GLTipe
32 , uniform :: Map String GLTipe
33 , varying :: Map String GLTipe
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