packages feed

hydra-kernel-0.18.1: src/main/haskell/Hydra/Core/Dsl/Json/Parser.hs

-- Note: this is an automatically generated file. Do not edit.

-- | DSL functions for hydra.core.json.parser

module Hydra.Core.Dsl.Json.Parser where

import qualified Hydra.Core.Dsl.Json.Model as DslJsonModel
import qualified Hydra.Core.Dsl.Lib.Equality as Equality
import qualified Hydra.Core.Dsl.Lib.Functions as Functions
import qualified Hydra.Core.Dsl.Lib.Lists as LibLists
import qualified Hydra.Core.Dsl.Lib.Literals as Literals
import qualified Hydra.Core.Dsl.Lib.Logic as Logic
import qualified Hydra.Core.Dsl.Lib.Math as Math
import qualified Hydra.Core.Dsl.Lib.Optionals as Optionals
import qualified Hydra.Core.Dsl.Lib.Ordering as Ordering
import qualified Hydra.Core.Dsl.Lib.Strings as Strings
import qualified Hydra.Core.Json.Model as JsonModel
import qualified Hydra.Core.Json.Parser as Parser
import qualified Hydra.Core.Overlay.Haskell.Lib.Lists as Lists
import qualified Hydra.Core.Model as Model
import qualified Hydra.Core.Parsers as Parsers
import qualified Hydra.Core.Parsing as Parsing
import qualified Hydra.Core.Typed as Typed
import Prelude hiding  (Enum, Ordering, decodeFloat, encodeFloat, fail, lines, map, pure, sum, unlines)
import qualified Data.Scientific as Sci
import Data.Void

-- | DSL reference to hydra.core.json.parser.digit
digit :: Typed.TypedTerm (Parsing.Parser Int)
digit = Typed.TypedTerm (Model.TermVariable (Model.Name "hydra.core.json.parser.digit"))

-- | DSL reference to hydra.core.json.parser.digits
digits :: Typed.TypedTerm (Parsing.Parser String)
digits = Typed.TypedTerm (Model.TermVariable (Model.Name "hydra.core.json.parser.digits"))

-- | DSL reference to hydra.core.json.parser.jsonArray
jsonArray :: Typed.TypedTerm (Parsing.Parser JsonModel.Value)
jsonArray = Typed.TypedTerm (Model.TermVariable (Model.Name "hydra.core.json.parser.jsonArray"))

-- | DSL reference to hydra.core.json.parser.jsonBool
jsonBool :: Typed.TypedTerm (Parsing.Parser JsonModel.Value)
jsonBool = Typed.TypedTerm (Model.TermVariable (Model.Name "hydra.core.json.parser.jsonBool"))

-- | DSL reference to hydra.core.json.parser.jsonEscapeChar
jsonEscapeChar :: Typed.TypedTerm (Parsing.Parser Int)
jsonEscapeChar = Typed.TypedTerm (Model.TermVariable (Model.Name "hydra.core.json.parser.jsonEscapeChar"))

-- | DSL reference to hydra.core.json.parser.jsonEscapedChar
jsonEscapedChar :: Typed.TypedTerm (Parsing.Parser Int)
jsonEscapedChar = Typed.TypedTerm (Model.TermVariable (Model.Name "hydra.core.json.parser.jsonEscapedChar"))

-- | DSL reference to hydra.core.json.parser.jsonExponentPart
jsonExponentPart :: Typed.TypedTerm (Parsing.Parser (Maybe String))
jsonExponentPart = Typed.TypedTerm (Model.TermVariable (Model.Name "hydra.core.json.parser.jsonExponentPart"))

-- | DSL reference to hydra.core.json.parser.jsonFractionPart
jsonFractionPart :: Typed.TypedTerm (Parsing.Parser (Maybe String))
jsonFractionPart = Typed.TypedTerm (Model.TermVariable (Model.Name "hydra.core.json.parser.jsonFractionPart"))

-- | DSL reference to hydra.core.json.parser.jsonHex4
jsonHex4 :: Typed.TypedTerm (Parsing.Parser Int)
jsonHex4 = Typed.TypedTerm (Model.TermVariable (Model.Name "hydra.core.json.parser.jsonHex4"))

-- | DSL reference to hydra.core.json.parser.jsonHexDigit
jsonHexDigit :: Typed.TypedTerm (Parsing.Parser Int)
jsonHexDigit = Typed.TypedTerm (Model.TermVariable (Model.Name "hydra.core.json.parser.jsonHexDigit"))

-- | DSL reference to hydra.core.json.parser.jsonHexDigitValue
jsonHexDigitValue :: Typed.TypedTerm Int -> Typed.TypedTerm (Maybe Int)
jsonHexDigitValue arg0 =
    Typed.TypedTerm (Model.TermApplication (Model.Application {
      Model.applicationFunction = (Model.TermVariable (Model.Name "hydra.core.json.parser.jsonHexDigitValue")),
      Model.applicationArgument = (Typed.unTypedTerm arg0)}))

-- | DSL reference to hydra.core.json.parser.jsonIntegerPart
jsonIntegerPart :: Typed.TypedTerm (Parsing.Parser String)
jsonIntegerPart = Typed.TypedTerm (Model.TermVariable (Model.Name "hydra.core.json.parser.jsonIntegerPart"))

-- | DSL reference to hydra.core.json.parser.jsonIsHighSurrogate
jsonIsHighSurrogate :: Typed.TypedTerm Int -> Typed.TypedTerm Bool
jsonIsHighSurrogate arg0 =
    Typed.TypedTerm (Model.TermApplication (Model.Application {
      Model.applicationFunction = (Model.TermVariable (Model.Name "hydra.core.json.parser.jsonIsHighSurrogate")),
      Model.applicationArgument = (Typed.unTypedTerm arg0)}))

-- | DSL reference to hydra.core.json.parser.jsonIsLowSurrogate
jsonIsLowSurrogate :: Typed.TypedTerm Int -> Typed.TypedTerm Bool
jsonIsLowSurrogate arg0 =
    Typed.TypedTerm (Model.TermApplication (Model.Application {
      Model.applicationFunction = (Model.TermVariable (Model.Name "hydra.core.json.parser.jsonIsLowSurrogate")),
      Model.applicationArgument = (Typed.unTypedTerm arg0)}))

-- | DSL reference to hydra.core.json.parser.jsonKeyValue
jsonKeyValue :: Typed.TypedTerm (Parsing.Parser (String, JsonModel.Value))
jsonKeyValue = Typed.TypedTerm (Model.TermVariable (Model.Name "hydra.core.json.parser.jsonKeyValue"))

-- | DSL reference to hydra.core.json.parser.jsonNull
jsonNull :: Typed.TypedTerm (Parsing.Parser JsonModel.Value)
jsonNull = Typed.TypedTerm (Model.TermVariable (Model.Name "hydra.core.json.parser.jsonNull"))

-- | DSL reference to hydra.core.json.parser.jsonNumber
jsonNumber :: Typed.TypedTerm (Parsing.Parser JsonModel.Value)
jsonNumber = Typed.TypedTerm (Model.TermVariable (Model.Name "hydra.core.json.parser.jsonNumber"))

-- | DSL reference to hydra.core.json.parser.jsonObject
jsonObject :: Typed.TypedTerm (Parsing.Parser JsonModel.Value)
jsonObject = Typed.TypedTerm (Model.TermVariable (Model.Name "hydra.core.json.parser.jsonObject"))

-- | DSL reference to hydra.core.json.parser.jsonString
jsonString :: Typed.TypedTerm (Parsing.Parser JsonModel.Value)
jsonString = Typed.TypedTerm (Model.TermVariable (Model.Name "hydra.core.json.parser.jsonString"))

-- | DSL reference to hydra.core.json.parser.jsonStringChar
jsonStringChar :: Typed.TypedTerm (Parsing.Parser Int)
jsonStringChar = Typed.TypedTerm (Model.TermVariable (Model.Name "hydra.core.json.parser.jsonStringChar"))

-- | DSL reference to hydra.core.json.parser.jsonValue
jsonValue :: Typed.TypedTerm (Parsing.Parser JsonModel.Value)
jsonValue = Typed.TypedTerm (Model.TermVariable (Model.Name "hydra.core.json.parser.jsonValue"))

-- | DSL reference to hydra.core.json.parser.parseJson
parseJson :: Typed.TypedTerm String -> Typed.TypedTerm (Parsing.ParseResult JsonModel.Value)
parseJson arg0 =
    Typed.TypedTerm (Model.TermApplication (Model.Application {
      Model.applicationFunction = (Model.TermVariable (Model.Name "hydra.core.json.parser.parseJson")),
      Model.applicationArgument = (Typed.unTypedTerm arg0)}))

-- | DSL reference to hydra.core.json.parser.token
token :: Typed.TypedTerm (Parsing.Parser t0) -> Typed.TypedTerm (Parsing.Parser t0)
token arg0 =
    Typed.TypedTerm (Model.TermApplication (Model.Application {
      Model.applicationFunction = (Model.TermVariable (Model.Name "hydra.core.json.parser.token")),
      Model.applicationArgument = (Typed.unTypedTerm arg0)}))

-- | DSL reference to hydra.core.json.parser.whitespace
whitespace :: Typed.TypedTerm (Parsing.Parser ())
whitespace = Typed.TypedTerm (Model.TermVariable (Model.Name "hydra.core.json.parser.whitespace"))