Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data GodotValue
- data GodotSection
- = ExtResourceSection { }
- | SubResourceSection { }
- | NodeSection {
- _nodeSectionTy :: Maybe Text
- _nodeSectionName :: Text
- _nodeSectionParent :: Maybe Text
- _nodeSectionInst :: Maybe Int
- _nodeSectionInstPlaceholder :: Maybe Text
- _nodeSectionOwner :: Maybe Text
- _nodeSectionIndex :: Maybe Int
- _nodeSectionGroups :: Maybe [Text]
- _nodeSectionHeaders :: HashMap Text GodotValue
- _nodeSectionEntries :: HashMap Text GodotValue
- | ConnectionSection { }
- | ResourceSection { }
- | OtherSection { }
- data TscnDescriptor = TscnDescriptor {}
- data TscnParsed = TscnParsed {}
- data GdnsDescriptor = GdnsDescriptor {}
- data GdnsParsed = GdnsParsed {}
- data GodotParsed
- tscnParser :: Parser TscnParsed
- gdnsParser :: Parser GdnsParsed
Documentation
data GodotValue Source #
Values parsed from a Tscn file.
GodotConstructor (Text, [GodotValue]) | |
GodotInt Int | |
GodotFloat Float | |
GodotBool Bool | |
GodotString Text | |
GodotDict (HashMap Text GodotValue) | |
GodotArr [GodotValue] | |
GodotNull |
Instances
data GodotSection Source #
As of Godot 3.3
Instances
data TscnDescriptor Source #
Instances
Show TscnDescriptor Source # | |
Defined in Godot.Parser.Resource showsPrec :: Int -> TscnDescriptor -> ShowS # show :: TscnDescriptor -> String # showList :: [TscnDescriptor] -> ShowS # | |
Generic TscnDescriptor Source # | |
Defined in Godot.Parser.Resource type Rep TscnDescriptor :: Type -> Type # from :: TscnDescriptor -> Rep TscnDescriptor x # to :: Rep TscnDescriptor x -> TscnDescriptor # | |
type Rep TscnDescriptor Source # | |
Defined in Godot.Parser.Resource type Rep TscnDescriptor = D1 ('MetaData "TscnDescriptor" "Godot.Parser.Resource" "godot-megaparsec-0.1.0.0-1QBkQ7KFPKy3IXyJP7Qowv" 'False) (C1 ('MetaCons "TscnDescriptor" 'PrefixI 'True) (S1 ('MetaSel ('Just "_tscnDescriptorLoadSteps") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "_tscnDescriptorFormat") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))) |
data TscnParsed Source #
Instances
Show TscnParsed Source # | |
Defined in Godot.Parser.Resource showsPrec :: Int -> TscnParsed -> ShowS # show :: TscnParsed -> String # showList :: [TscnParsed] -> ShowS # | |
Generic TscnParsed Source # | |
Defined in Godot.Parser.Resource type Rep TscnParsed :: Type -> Type # from :: TscnParsed -> Rep TscnParsed x # to :: Rep TscnParsed x -> TscnParsed # | |
type Rep TscnParsed Source # | |
Defined in Godot.Parser.Resource type Rep TscnParsed = D1 ('MetaData "TscnParsed" "Godot.Parser.Resource" "godot-megaparsec-0.1.0.0-1QBkQ7KFPKy3IXyJP7Qowv" 'False) (C1 ('MetaCons "TscnParsed" 'PrefixI 'True) (S1 ('MetaSel ('Just "_tscnParsedDescriptor") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TscnDescriptor) :*: S1 ('MetaSel ('Just "_tscnParsedSections") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [GodotSection]))) |
data GdnsDescriptor Source #
Instances
Show GdnsDescriptor Source # | |
Defined in Godot.Parser.Resource showsPrec :: Int -> GdnsDescriptor -> ShowS # show :: GdnsDescriptor -> String # showList :: [GdnsDescriptor] -> ShowS # | |
Generic GdnsDescriptor Source # | |
Defined in Godot.Parser.Resource type Rep GdnsDescriptor :: Type -> Type # from :: GdnsDescriptor -> Rep GdnsDescriptor x # to :: Rep GdnsDescriptor x -> GdnsDescriptor # | |
type Rep GdnsDescriptor Source # | |
Defined in Godot.Parser.Resource type Rep GdnsDescriptor = D1 ('MetaData "GdnsDescriptor" "Godot.Parser.Resource" "godot-megaparsec-0.1.0.0-1QBkQ7KFPKy3IXyJP7Qowv" 'False) (C1 ('MetaCons "GdnsDescriptor" 'PrefixI 'True) (S1 ('MetaSel ('Just "_gdnsDescriptorTy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "_gdnsDescriptorLoadSteps") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "_gdnsDescriptorFormat") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))) |
data GdnsParsed Source #
Instances
Show GdnsParsed Source # | |
Defined in Godot.Parser.Resource showsPrec :: Int -> GdnsParsed -> ShowS # show :: GdnsParsed -> String # showList :: [GdnsParsed] -> ShowS # | |
Generic GdnsParsed Source # | |
Defined in Godot.Parser.Resource type Rep GdnsParsed :: Type -> Type # from :: GdnsParsed -> Rep GdnsParsed x # to :: Rep GdnsParsed x -> GdnsParsed # | |
type Rep GdnsParsed Source # | |
Defined in Godot.Parser.Resource type Rep GdnsParsed = D1 ('MetaData "GdnsParsed" "Godot.Parser.Resource" "godot-megaparsec-0.1.0.0-1QBkQ7KFPKy3IXyJP7Qowv" 'False) (C1 ('MetaCons "GdnsParsed" 'PrefixI 'True) (S1 ('MetaSel ('Just "_gdnsParsedDescriptor") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 GdnsDescriptor) :*: S1 ('MetaSel ('Just "_gdnsParsedSections") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [GodotSection]))) |
data GodotParsed Source #
Instances
Show GodotParsed Source # | |
Defined in Godot.Parser.Resource showsPrec :: Int -> GodotParsed -> ShowS # show :: GodotParsed -> String # showList :: [GodotParsed] -> ShowS # | |
Generic GodotParsed Source # | |
Defined in Godot.Parser.Resource type Rep GodotParsed :: Type -> Type # from :: GodotParsed -> Rep GodotParsed x # to :: Rep GodotParsed x -> GodotParsed # | |
type Rep GodotParsed Source # | |
Defined in Godot.Parser.Resource type Rep GodotParsed = D1 ('MetaData "GodotParsed" "Godot.Parser.Resource" "godot-megaparsec-0.1.0.0-1QBkQ7KFPKy3IXyJP7Qowv" 'False) (C1 ('MetaCons "Tscn" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TscnParsed)) :+: C1 ('MetaCons "Gdns" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 GdnsParsed))) |
tscnParser :: Parser TscnParsed Source #
Parse a tscn
file.
gdnsParser :: Parser GdnsParsed Source #
Parse a gdns
file.