!      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      Safe0;=-_hpp6A fully-populated configuration for the pre-processor.hppmPre-processor configuration parameterized over a functor. This is used to normalize partial configurations,  ConfigF Maybe<, and configurations suitable for the pre-processor logic, ConfigF IdentityB. Specifically, the source file name of the file being processed must be set.hppName of the file being preprocessed. Hpp will update this as new files are included. The user must set it manually for the starting input file.hpp(Paths to be searched for included files.hppA backslash as the last character of a line causes the next line to be appended to the current one eliding the newline character present in the source input.hpp#Erase line comments (starting with //$) and block comments (delimited by /* and */).hpp Do not emit #line directives.hppXReplace trigraph sequences (each of which starts with two consecutive question marks ("??"") with the characters they encode. hppFormat string for __DATE__. hppFormat string for __TIME__. hppA  representing a date.hppA  representing a time.hpp7Ensure that required configuration fields are supplied.hpp3Extract the current file name from a configuration.hpp4Extract the include paths name from a configuration.hpp4Determine if continued long lines should be spliced.hpp/Determine if C-style comments should be erased.hpp;Determine if generation of linemarkers should be inhibited.hpp3Determine if trigraph sequences should be replaced.hpp&The date the pre-processor was run on.hpp0The time of the active pre-processor invocation.hppA default configuration with no current file name set. Note that long line splicing is enabled, C++-style comments are erased, #line markers are inhibited, and trigraph replacement is disabled.hpp&Format a date according to the C spec.hpp&Format a time according to the C spec.hppcA default preprocessor configuration with date and time stamps taken from the current system time.    SafeN.%&'(%&'(Safe;h)hppStringification puts double quotes around a string and backslashes before existing double quote characters and backslash characters.*hpp9Remove double quote characters from the ends of a string.+hpp0Remove angle brackets from the ends of a string.,hppTrim trailing spaces from a hppMRemove a suffix of a list all of whose elements satisfy the given predicate.-hpp0Similar to the function of the same name in the text package.breakOn needles haystack, finds the first instance of an element of needles in haystack^. The first component of the result is the needle tag, the second component is the prefix of haystackJ before the matched needle, the third component is the remainder of the haystack after the needle...hppUsed to make switching to the text package easier.)*+,-.)*+,-.Safe%;=eIa/hpp?A collection of operations relating to sequences of characters.0hppStringification puts double quotes around a string and backslashes before existing double quote characters and backslash characters.1hpp9Remove double quote characters from the ends of a string.2hppTrim trailing spaces from a 3hpp0Similar to the function of the same name in the text package.breakOn needles haystack, finds the first instance of an element of needles in haystack^. The first component of the result is the needle tag, the second component is the prefix of haystackJ before the matched needle, the third component is the remainder of the haystack after the needle..4hppA special case of 3S in which we are looking for either a special character or a particular substring.AhppBAn opportunity to copy a string to its own storage to help with GC/<;:9420@1?>38=7A56BEDCFGHIJKBEDC/<;:9420@1?>38=7A56HIJKGFG5Safe%]>NhppTokenization is 9 except the white space is tagged rather than discarded.Ohpp#Identifiers, symbols, and constantsPhppWhite space, etc.QhppExtract the contents of a N.Rhpp if the given N is O;  otherwise.Shpp if the given N is not O;  otherwise.ThppReturn the contents of only O (non-space) tokens.UhppTrim P Ns from both ends of a list of Ns.VhppIs a N a newline character?hppBreak a $ into space and non-whitespace runs.Whpp[Skip over a string or character literal returning the literal and the remaining the input.hppsplits isDelimiter str tokenizes str using  isDelimiterM as a delimiter predicate. Leading whitespace is also stripped from tokens.hppPredicate on space characters based on something approximating valid identifier syntax. This is used to break apart non-space characters.hppSomething like 12E+FOO& is a single pre-processor token, so FOO should not be macro expanded.XhppBreak an input  into a sequence of Tokensh. Warning: This may not exactly correspond to your target language's definition of a valid identifier!YhppCollapse a sequence of Tokens back into a . detokenize . tokenize == id. NPOQRSTUVWXY NPOQRSTUYXVWSafe+QVs[^hppExpressions are literal values, binary operators applied to two sub-expressions, or unary operators applied to a single sub-expression.hppFor 5https://en.wikipedia.org/wiki/Shunting-yard_algorithm referencehppQIf one side of an operator is unsigned, the other side is converted to unsigned.hpp6Precedence of binary operators from lowest to highest.hpp4String literals are split by tokenization. Fix them!hpp]Re-combine positive and negative unary operators with the tokens to which they are attached.hpp(Re-combine multiple-character operators.bhpppRead a literal integer. These may be decimal, octal, or hexadecimal, and may have a case-insensitive suffix of u, l, or ul.hppLExhaust the function/operator stack returning the parsed expression in RPN.hpp8Shunting yard algorithm part for dealing with operators. hppIShunting yard to produce a reverse polish notation (RPN) list of tokens.!hpp-Convert an RPN list of parsed tokens into an ^.chppTry to read an ^ from a sequence of Ns.dhppPretty-print an ^` to something semantically equivalent to the original C syntax (some parentheses may be added).ehppAll ^s can be evaluated to an ".#hppevalExpr isDefined e evaluates expression eQ in an environment where the existence of macro definitions is captured by the  isDefined+ predicate. All expressions evaluate to an "!^_`abcde^_`abcdeSafe;=QV]hpp6There are object-like macros and function-like macros.hpp4An object-like macro is replaced with its definitionhppA function-like macro of some arity taks macro-expanded and raw versions of its arguments, then substitutes them into a body producing a new set of tokens.hppMacro expansion involves treating tokens differently if they appear in the original source or as the result of a previous macro expansion. This distinction is used to prevent divergence by masking out definitions that could be used recursively.sThings are made somewhat more complicated than one might expect due to the fact that the scope of this masking is not structurally recursive. A object-like macro can expand into a fragment of a macro function application, one of whose arguments is a token matching the original object-like macro. That argument should not be expanded.hpp=An interpreter capability of threading a binding environment.hpp2An interpreter capability to modify dynamic state.hppAA free monad transformer specialized to HppF as the base functor.hpp is a monad with  as its base functor.hppcA free monad construction to strictly delimit what capabilities we need to perform pre-processing.hpp)Dynamic state of the preprocessor engine.hppInitial configurationhppDirectory of input filehpp!Current line number of input filehpp Preprocessor binding environmenthpp)Base functor for a free monad transformerhpp%Hpp can raise various parsing errors.hpp"Error conditions we may encounter.hppA macro binding environment.hpp Line numbers are represented as "shpphppReadFile lineNumber fileName introduces an  #include fileName at the given line number.hpphppReadNext lineNumber fileName introduces an #include_next fileName at the given line number.hpp Looks up a $ in the current environment. If the O is found, the environment is juggled so that subsequent lookups of the same  may evaluate more quickly.C~C~44SafeR$hppThe first component of each pair represents the end of a known trigraph sequence (each trigraph begins with two consecutive question marks ("??"c). The second component is the single-character equivalent that we substitute in for the trigraph.hppLIf a line ends with a backslash, it is prepended to the following the line.hpp(Remove C-style comments bracketed by @@.hppHRemove C-style comments bracked by @@ and perform trigraph replacement.%hpp-Standard CPP settings for processing C files.&hpp0For Haskell we do not want trigraph replacement.'hppBIf we don't have a predefined processor, we build one based on a  value. Safe3N]+hppA  is a bit of state that carries a source of input consisting of a list of values which are either actions in an underlying monad or sequences of inputs. Thus we have chunks of input values with interspersed effects.hppA 2 is a bit of state that carries a source of input.(hpp)Functions for working with input sources.)hppLOur input is a list of values each of which is either an action or a value.*hpp;A single pre-processor input is either an action or a value+hpp,Pop the head non-effect element from a list.,hpp7Pop the first non-null, non-effect element from a list.hpp)Push a value back into a parser's source.hpp4Push a stream of values back into a parser's source.hpp Evaluate a  with a given input stream.hpp that throws an error with the given message if no more input is available. This may be used to locate where in a processing pipeline input was unexpectedly exhausted.hpp`Discard all values until one fails to satisfy a predicate. At that point, the failing value is  d, and the  stream stops.hpp]Echo all values until one fails to satisfy a predicate. At that point, the failing value is  d, and the  stream stops.hppA parser on lists of things can embed a parser on things. For example, if we have a parser on lists of words, we can embed a parser on individual words.hppGiven a function with type a -> b, and a partial inverse,  b -> Maybe a*, we can embed a parser on values of type b in a parser on values of type a. Safe%P-hppDeal with the two-character ##J token pasting/splicing operator. We do so eliminating spaces around the ## operator.hpp9Parse the definition of an object-like or function macro..hppDrop spaces following # characters./hpp Concatenate tokens separated by ##.0hpp'functionMacro parameters body arguments substitutes  arguments for  parameters in body/ and performs stringification for uses of the #* operator and token concatenation for the ## operator. SafeQV]Α1hpp Extract the  payload from a .2hppExpand all macros to the end of the current line or until all in-progress macro invocations are complete, whichever comes last.3hppParse a function application. Arguments are separated by commas, and the application runs until the balanced closing parenthesis. If this is not an application, 4 is returned.5hpp.Emit the tokens of a single argument. Returns c if this is the final argument in an application (indicated by an unbalanced closing parenthesis.6hpphKick this off after an opening parenthesis and it will yield every token up to the closing parenthesis.7hppReturns 4 if this isn't an application;  Left args if we parsed arguments args%, but there is an arity mismatch; or  Right tokens3 if the function application expanded successfully.8hpp0Trim whitespace from both ends of a sequence of  tokens.9hppHCollapse internal whitespace to single spaces, and trim trailing space. SafeԮhppTTake everything up to the end of this branch, drop all remaining branches (if any).hppBDrop the rest of a conditional expression incrementing the given  by the number of lines skipped.:hpp5Skip to the end of a conditional branch. Returns the ;. the token that ends this branch if it is an else or elif, or 4, otherwise, and the number of lines skipped. Safe%V]]<hppUReturns everything up to the next newline. The newline character itself is consumed.=hpp1Run a Stream with a configuration for a new file.hppFHandle preprocessor directives (commands prefixed with an octothorpe).>hppWe want to expand macros in expressions that must be evaluated for conditionals, but we want to take special care when dealing with the meta definedX operator of the expression language that is a predicate on the evaluation environment.hpp9Expands an input line producing a stream of output lines.Safe%+NV]hppInterpret the IO components of the preprocessor. This implementation relies on IO for the purpose of checking search paths for included files.hppLike runHpp , but any #include directives are skipped. These ignored inclusions are tracked in the returned list of files, but note that since extra source files are not opened, any files they might wish to include are not discovered.hpp/Run a stream of lines through the preprocessor.?hpp;A concreate choice of types to satisfy the constraints of .@hppCGeneral hpp runner against input source file lines; can return an  value if something goes wrong.hppGeneral hpp runner against input source file lines. Output lines are fed to the caller-supplied sink function. Any errors encountered are thrown with A.hpp%hpp runner that returns output lines. NoneKN hppThe result of running hpphpp/The type of preprocessor actions. Created with  and executed with  or .hppPreprocess lines of input.hppRun a preprocessor action with some initial state. Returns the result of preprocessing as well as an updated preprocessor state representation.hppstreamHpp state sink action runs a preprocessor action with some initial state4. Output is streamed to the caller-provided output sink as it is generated. The list of files read during preprocessing is returned along with an updated preprocessor state representation.hppLike , but does not access the filesystem. Run a preprocessor action with some initial state. Returns the result of preprocessing as well as an updated preprocessor state representation. Since this operation performs no IO, #include~ directives are ignored in terms of the generated output lines, but the files named in those directive are available in the  value returned.hppAn w containing no macro definitions, and default values for the starting configuration: the name of the current file is "NoFile"B, there are no paths to be searched for included files, etc. See 2 for more information on available configuration.hpp Create a  with the given  and .hppaddDefinition name expression adds a binding of name to  expression& in the preprocessor s internal state. hppGLower level parsing of macro definitions. Will typically be used with & for manual construction of a  binding environment.  NoneQVBhpp:Break a string on an equals sign. For example, the string x=y is broken into  [x,"=",y].ChppiIf no space is included between a switch and its argument, break it into two tokens to simplify parsing.hpp-Run Hpp with the given commandline arguments.D !"#$%&'()*+,-./0123456789:;<=78:;><?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~             !"# $ % & ' ( ) * + , - . /0 1 2 3 4 5 67 8 9 :;<=>?@A hpp-0.6.0-3GpFaSuKymyKVNZNvDm9kw Hpp.ConfigHpp.Env Hpp.String Hpp.StringSig Hpp.TokensHpp.Expr Hpp.TypesHpp.Preprocessing Hpp.Parser Hpp.Macro Hpp.ExpansionHpp.Conditional Hpp.Directive Hpp.RunHppHpp Hpp.CmdLineConfigConfigF curFileNameF includePathsFspliceLongLinesFeraseCCommentsFinhibitLinemarkersFreplaceTrigraphsF prepDateF prepTimeF DateString getDateString TimeString getTimeString realizeConfig curFileName includePathsspliceLongLineseraseCCommentsinhibitLinemarkersreplaceTrigraphsprepDateprepTimedefaultConfigFformatPrepDateformatPrepTimedefaultConfigFNow$fEqTimeString$fOrdTimeString$fShowTimeString$fEqDateString$fOrdDateString$fShowDateString $fShowConfigFemptyEnv insertPair deleteKey lookupKey stringifyunquotestripAngleBrackets trimSpacesbreakOnconsStringybreakCharOrSubunconssnocunsnocsdropsbreaksall sIsPrefixOfisEmpty readLines putStringytoCharscopy CharOrSub CharMatchSubMatchNoMatchNil:.boolJust predicateJust sdropWhilestripR$fStringyByteString $fStringy[]Token ImportantOtherdetok isImportant notImportant importantstrimUnimportantnewLine skipLiteraltokenize detokenize$fFunctorToken $fEqToken $fOrdToken $fShowTokenExprELitEBinOpEUnaryOp readLitInt parseExpr renderExprevalExpr $fNumCppInt $fOrdCppInt $fEqCppInt $fEqBinOp $fOrdBinOp $fShowBinOp $fEqUnaryOp $fOrdUnaryOp $fShowUnaryOp$fEqLit$fOrdLit $fShowLit $fEqParsed $fOrdParsed $fShowParsed $fEqAssoc $fOrdAssoc $fShowAssoc $fEqFunLike $fOrdFunLike $fShowFunLike$fEqExpr $fOrdExpr $fShowExprLensMacroObjectFunctionScanUnmaskMaskRescanHasEnvgetEnvsetEnv HasHppStategetStatesetStateHppTrunHppTHppFReadFileReadNext WriteOutputHppState hppConfig hppCurDir hppLineNumhppEnvFreeFPureFHasError throwErrorErrorUnterminatedBranchBadMacroDefinitionBadIfPredicateBadLineArgumentIncludeDoesNotExist FailedInclude UserErrorUnknownCommandTooFewArgumentsToMacroBadMacroArguments NoInputFileBadCommandLine RanOutOfInputTOKENStringEnvLineNum hppReadFile hppReadNexthppWriteOutput lookupMacrosetLgetLover emptyHppStateconfigdirlineNumenvuse.=%=$fExceptionError$fHasErrorStateT$fHasErrorExceptT$fFunctorFreeF $fFunctorHppF $fMonadIOHppT$fMonadTransHppT $fMonadHppT$fApplicativeHppT $fFunctorHppT$fHasErrorHppT $fShowMacro$fHasEnvExceptT$fHasEnvStateT$fHasEnvStateT0 $fHasEnvHppT$fHasHppStateHppT$fHasHppStateStateT$fHasHppStateStateT0$fHasHppStateExceptT $fEqError $fOrdError $fShowError$fEqScan $fShowScan$fShowHppStatetrigraphReplacement lineSplicingcCommentRemovalcCommentAndTrigraph prepareInputParserParserTawaitreplaceprecede evalParse awaitJust droppingWhile takingWhileinsertInputSegmentonInputSegment onElements onIsomorphism$fFunctorInputItemparseDefinitionexpandLineState takeBranch dropBranch directivemacroExpansion HppResult hppFilesRead hppResultrunHpp expandHpp preprocess hppIOSinkhppIO HppOutput hppOutput streamHppexpand initHppState addDefinition runWithArgsbaseGHC.BasetrimEnd Data.OldListwordsghc-prim GHC.TypesTrueFalsetokWordssplitsvalidIdentifierChar fixExponentsFunLikeCppInt precedenceBin fixStringLits fixUnaryOps fixBinaryOpsfinishShunting juggleBinOpsshuntRPN rpnToExprInt evalExpr' trigraphs normalCPP haskellCPP genericConfigSourceInput InputItemunconsMunconsMNonEmptyprepTOKENSplices prepStringifypaste functionMacrounscan expandLineappParseNothingargParse parentheticalexpandFunctiontrimScan trimScanAux dropBranchAuxJusttakeLine streamNewFile squashDefinesdischargeHppCaps hppIOSink'GHC.ErrerrorbreakEqs splitSwitches