F&"      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~         !  Safe-Inferred+-0#'Retrieve the annotation of an AST node.Change the annotation of an AST node. Note that only the annotation of the node itself is affected, and not the annotations of any child nodes. if all nodes in the AST tree are to be affected, use ".stringtable constructor list of argsprefixexp : name ( funarg ) prefixexp ( funarg ) (args, vararg, block)=A block is list of statements with optional return statement. name = exp [exp] = explist of table fields1table.variable2 table[exp]3variable5unary operators, - not #6binary operators,  + - * ^ % ..  <= >= == ~= and or7table constructor9function (..) .. end:...@;A#local var1, var2 .. = exp1, exp2 ..B local function <var> (..) .. endCfunction <var> (..) .. endDfor x in .. do .. endE#for x=start, end [, step] do .. endF'if .. then .. [elseif ..] [else ..] endGrepeat .. until ..Hwhile .. do .. endI do .. endJ goto labelKbreakLlabel for gotoM function callNvar1, var2 .. = exp1, exp2 ..n  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmQ  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPnOP?NMLKJIHGFEDCBA@4>=<;:987650321 /.-,+*)('&%$#"!  mlkjihgfedcba`_^]\[ZYXWVUTSRQ-     /.-,+*)('&%$#"!03214 >=<;:98765?NMLKJIHGFEDCBA@OPQRSTUVWXYZ[\]^_`abcdefghijklm /Daan Leijen (c) 2000, http://www.cs.uu.nl/~daan BSD-style (see the file LICENSE)otakar.smrz cmu.edu provisionalportable Safe-InferredH#The data type  SimpleDocE represents rendered documents and is used by the display functions.The Int in SText( contains the length of the string. The Int in SLine] contains the indentation for that line. The library provides two default display functions o and pJ. You can provide your own display function by writing a function from a  SimpleDoc to your own output format.$The abstract data type Doc represents pretty documents.Doc is an instance of the % class.  (show doc) pretty prints document docJ with a page width of 100 characters and a ribbon width of 40 characters. $show (text "hello" <$> text "world")2Which would return the string "hello\nworld", i.e.  hello world & The member  prettyList is only used to define the  instance Pretty a => Pretty [a]#. In normal circumstances only the pretty function is used.' The document  (list xs) comma separates the documents xs and encloses them in square brackets. The documents are rendered horizontally if that fits the page. Otherwise they are aligned vertically. All comma separators are put in front of the elements.( The document  (tupled xs) comma separates the documents xs and encloses them in parenthesis. The documents are rendered horizontally if that fits the page. Otherwise they are aligned vertically. All comma separators are put in front of the elements.) The document (semiBraces xs) separates the documents xs with semi colons and encloses them in braces. The documents are rendered horizontally if that fits the page. Otherwise they are aligned vertically. All semi colons are put in front of the elements.* The document (encloseSep l r sep xs) concatenates the documents xs separated by sep( and encloses the resulting document by l and r. The documents are rendered horizontally if that fits the page. Otherwise they are aligned vertically. All separators are put in front of the elements. For example, the combinator ' can be defined with  encloseSep: hlist xs = encloseSep lbracket rbracket comma xs test = text "list" <+> (list (map int [10,200,3000])).Which is layed out with a page width of 20 as: list [10,200,3000] 2But when the page width is 15, it is layed out as: list [10 ,200 ,3000] +(punctuate p xs) concatenates all documents in xs with document p except for the last document. isomeText = map text ["words","in","a","tuple"] test = parens (align (cat (punctuate comma someText)))+This is layed out on a page width of 20 as: (words,in,a,tuple) 2But when the page width is 15, it is layed out as: (words, in, a, tuple) ^(If you want put the commas in front of their elements instead of at the end, you should use ( or, in general, *.), The document (sep xs) concatenates all documents xs either horizontally with (<+>)+, if it fits the page, or vertically with (<$>). sep xs = group (vsep xs)- The document  (fillSep xs) concatenates documents xs horizontally with (<+>)/ as long as its fits the page, than inserts a line0 and continues doing that for all documents in xs. %fillSep xs = foldr (\<\/\>) empty xs. The document  (hsep xs) concatenates all documents xs horizontally with (<+>)./ The document  (vsep xs) concatenates all documents xs vertically with (<$>). If a 0% undoes the line breaks inserted by vsep+, all documents are separated with a space. YsomeText = map text (words ("text to lay out")) test = text "some" <+> vsep someTextThis is layed out as: some text to lay out The 1I combinator can be used to align the documents under their first element 0test = text "some" <+> align (vsep someText)Which is printed as: $some text to lay out 2 The document (cat xs) concatenates all documents xs either horizontally with (<>)+, if it fits the page, or vertically with (<$$>). cat xs = group (vcat xs)3 The document  (fillCat xs) concatenates documents xs horizontally with (<>)/ as long as its fits the page, than inserts a  linebreak/ and continues doing that for all documents in xs. 'fillCat xs = foldr (\<\/\/\>) empty xs4 The document  (hcat xs) concatenates all documents xs horizontally with (<>).5 The document  (vcat xs) concatenates all documents xs vertically with (<$$>). If a 0% undoes the line breaks inserted by vcat*, all documents are directly concatenated.6 The document (x <> y) concatenates document x and document y(. It is an associative operation having 7' as a left and right unit. (infixr 6)8 The document  (x <+> y) concatenates document x and y with a space in between. (infixr 6)9 The document  (x </> y) concatenates document x and y with a :# in between. This effectively puts x and y$ either next to each other (with a space2 in between) or underneath each other. (infixr 5); The document  (x <//> y) concatenates document x and y with a <# in between. This effectively puts x and yF either right next to each other or underneath each other. (infixr 5)= The document  (x <$> y) concatenates document x and y with a > in between. (infixr 5)? The document  (x <$$> y) concatenates document x and y with a  linebreak in between. (infixr 5): The document softline behaves like @C if the resulting output fits the page, otherwise it behaves like >. softline = group line< The document  softbreak behaves like 7C if the resulting output fits the page, otherwise it behaves like >. softbreak = group linebreakA Document  (squotes x) encloses document x with single quotes "'".B Document  (dquotes x) encloses document x with double quotes '"'.C Document  (braces x) encloses document x in braces, "{" and "}".D Document  (parens x) encloses document x in parenthesis, "(" and ")".E Document  (angles x) encloses document x in angles, "<" and ">".F Document  (brackets x) encloses document x" in square brackets, "[" and "]".G The document (enclose l r x) encloses document x between documents l and r using (<>). enclose l r x = l <> x <> rH The document lparen" contains a left parenthesis, "(".I The document rparen# contains a right parenthesis, ")".J The document langle contains a left angle, "<".K The document rangle contains a right angle, ">".L The document lbrace contains a left brace, "{".M The document rbrace contains a right brace, "}".N The document lbracket% contains a left square bracket, "[".O The document rbracket& contains a right square bracket, "]".P The document squote contains a single quote, "'".Q The document dquote contains a double quote, '"'.R The document semi contains a semi colon, ";".S The document colon contains a colon, ":".T The document comma contains a comma, ",".@ The document space contains a single space, " ". x <+> y = x <> space <> yU The document dot contains a single dot, ".".V The document  backslash contains a back slash, "\".W The document equals contains an equal sign, "=".X The document  (string s) concatenates all characters in s using line for newline characters and char2 for all other characters. It is used instead of Y0 whenever the text contains newline characters.Z The document (int i) shows the literal integer i using Y.[ The document  (integer i) shows the literal integer i using Y.\ The document  (float f) shows the literal float f using Y.] The document  (double d) shows the literal double d using Y.^ The document  (rational r) shows the literal rational r using Y._ The document (fillBreak i x) first renders document x. It than appends spaces until the width is equal to i. If the width of x is already larger than i%, the nesting level is increased by i and a line is appended. When we redefine ptype! in the previous example to use  fillBreak4, we get a useful variation of the previous output: Jptype (name,tp) = fillBreak 6 (text name) <+> text "::" <+> text tpThe output will now be: Rlet empty :: Doc nest :: Int -> Doc -> Doc linebreak :: Doc ` The document  (fill i x) renders document x. It than appends spaces until the width is equal to i. If the width of x is already larger, nothing is appended. This combinator is quite useful in practice to output a list of bindings. The following example demonstrates this. types = [("empty","Doc") ,("nest","Int -> Doc -> Doc") ,("linebreak","Doc")] ptype (name,tp) = fill 6 (text name) <+> text "::" <+> text tp test = text "let" <+> align (vcat (map ptype types))Which is layed out as: Glet empty :: Doc nest :: Int -> Doc -> Doc linebreak :: Doc a The document  (indent i x) indents document x with i spaces. ctest = indent 4 (fillSep (map text (words "the indent combinator indents these words !")))*Which lays out with a page width of 20 as: < the indent combinator indents these words ! bBThe hang combinator implements hanging indentation. The document  (hang i x) renders document x6 with a nesting level set to the current column plus i@. The following example uses hanging indentation for some text: _test = hang 4 (fillSep (map text (words "the hang combinator indents these words !"))):Which lays out on a page with a width of 20 characters as: 2the hang combinator indents these words ! The hang combinator is implemented as: hang i x = align (nest i x)1 The document  (align x) renders document xY with the nesting level set to the current column. It is used for example to implement b.hAs an example, we will put a document right above another one, regardless of the current nesting level: x $$ y = align (x <$> y) 5test = text "hi" <+> (text "nice" $$ text "world")which will be layed out as: hi nice world 7/The empty document is, indeed, empty. Although emptyI has no content, it does have a 'height' of 1 and behaves exactly like  (text "")! (and is therefore not a unit of <$>).c The document (char c) contains the literal character c). The character shouldn't be a newline ('\n'), the function >! should be used for line breaks.Y The document (text s) contains the literal string s-. The string shouldn't contain any newline ('\n'G) characters. If the string contains newline characters, the function X should be used.>The lineX document advances to the next line and indents to the current nesting level. Document line behaves like  (text " ")! if the line break is undone by 0.dThe  linebreakX document advances to the next line and indents to the current nesting level. Document  linebreak behaves like 7 if the line break is undone by 0.e The document  (nest i x) renders document x> with the current indentation level increased by i (See also b, 1 and a). 3nest 2 (text "hello" <$> text "world") <$> text "!" outputs as: hello world ! 0The groupB combinator is used to specify alternative layouts. The document  (group x)% undoes all line breaks in document xb. The resulting line is added to the current line if that fits the page. Otherwise, the document x" is rendered without any changes.n4This is the default pretty printer which is used by f, g and h. !(renderPretty ribbonfrac width x) renders document x with a page width of width and a ribbon width of (ribbonfrac * width)m characters. The ribbon width is the maximal amount of non-indentation characters on a line. The parameter  ribbonfrac should be between 0.0 and 1.0;. If it is lower or higher, the ribbon width will be 0 or width respectively.i(renderCompact x) renders document x without adding any indentation. Since no 'pretty' printing is involved, this renderer is very fast. The resulting output contains fewer characters than a pretty printed version and can be used for output that is read by other programs.o(displayS simpleDoc) takes the output  simpleDoc3 from a rendering function and transforms it to a j type (for use in the % class). VshowWidth :: Int -> Doc -> String showWidth w x = displayS (renderPretty 0.4 w x) ""p(displayIO handle simpleDoc) writes  simpleDoc to the file handle handle'. This function is used for example by h: AhPutDoc handle doc = displayIO handle (renderPretty 0.4 100 doc)g The action  (putDoc doc) pretty prints document docc to the standard output, with a page width of 100 characters and a ribbon width of 40 characters. Amain :: IO () main = do{ putDoc (text "hello" <+> text "world") }Which would output  hello world h(hPutDoc handle doc) pretty prints document doc to the file handle handleJ with a page width of 100 characters and a ribbon width of 40 characters. main = do{ handle <- openFile "MyFile" WriteMode ; hPutDoc handle (vcat (map text ["vertical","text"])) ; hClose handle }rklm#nopq$rstuvwxyz&{|'()*+,-./2345}689;=?:<ABCDEFGHIJKLMNOPQRST@UVWX~Z[\]^_`ab17cY>de0niopghS#nopq$&{|'()*+,-./2345689;=?:<ABCDEFGHIJKLMNOPQRST@UVWX~Z[\]^_`ab17cY>de0niopghakml#qpon$ zyxwvutsr&{|'()*+,-./2345}689;=?:<ABCDEFGHIJKLMNOPQRST@UVWX~Z[\]^_`ab17cY>de0niopgh689;=? Safe-Inferred6q Lua tokensr end of files identifiertstring constantunumber constantvwhilewuntilxtrueythenzreturn{repeat|or}not~nillocalinifgotofunctionforfalseendelseifelsedobreakand......,:;::][}{)(=><>=<=~===#^%/*-+7qrstuvwxyz{|}~6qrstuvwxyz{|}~7q~}|{zyxwvutsrq5~}|{zyxwvutsrNone;$Lua token with position information.BEncode a Haskell String to a list of Word8 values, in UTF8 format. Lua lexer.Run Lua lexer on a file.      !"#$%&'|      !"#$%&'None3(XThis parser succeeds whenever the given predicate returns true when called with parsed  . Same as  . Parses given q. Parses a s. Parses a u. Parses a t.()*()*NoneET#Runs Lua lexer before parsing. Use parseText stat to parse statements, and  parseText exp to parse expressions.Parse a Lua file. You can use parseText chunk to parse a file from a string.Expression parser.Statement parser.Lua file parser.=+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`ab6+,-10/.23465789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`ab NoneV  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOP Safe-Inferred+0 stringtable constructor list of argsprefixexp : name ( funarg )prefixexp ( funarg )(args, vararg, block)=A block is list of statements with optional return statement. name = exp [exp] = exptable.variable table[exp]variableunary operators, - not #binary operators,  + - * ^ % ..  <= >= == ~= and ortable constructorfunction (..) .. end...;#local var1, var2 .. = exp1, exp2 .. local function <var> (..) .. endfunction <var> (..) .. endfor x in .. do .. end#for x=start, end [, step] do .. end'if .. then .. [elseif ..] [else ..] endrepeat .. until ..while .. do .. end do .. end goto labelbreaklabel for goto function callvar1, var2 .. = exp1, exp2 ..U   IU        Safe-Inferred24  cdefghijklmnopqrstuvwxnop  nop    cdefghijklmnopqrstuvwxf Safe-Inferred None ! ! ! !NoneO  ! ! y !!"#$%&'()*+,-./0123456789:;<=5&*>"?@ABCDEFGHIJKLMNOPQRSTTUVWXYZ[\]^_`abcdefghijklmnopq r s tuvwxyz{|}~ "#$%&'()*+,-./0123456789:;<=5&*>"?@ABCDEFGHIJKLMNOPQRSTUVWYZ[]^_`ab                            D        ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ABCBDEFEGHIJKLMNOOPPQRSTUVWWXYYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      language-lua-0.6.2Language.Lua.Annotated.SyntaxLanguage.Lua.PrettyPrinterLanguage.Lua.TokenLanguage.Lua.Annotated.LexerText.Parsec.LTokLanguage.Lua.Annotated.ParserLanguage.Lua.SyntaxLanguage.Lua.Annotated.SimplifyLanguage.Lua.ParserText.PrettyPrint.LeijenText.Parsec.CharsatisfyLanguage.Lua.Annotated Language.Lua AnnotatedannamapFunArg StringArgTableArgArgsFunCall MethodCall NormalFunCallFunBodyFunDefFunNameBlock TableFieldField NamedFieldExpFieldTable PrefixExpParen PEFunCallPEVarUnopLenNotNegBinopOrAndNEQEQGTEGTLTELTConcatModExpDivMulSubAddVar SelectNameSelectVarName TableConstEFunDefVarargStringNumberBoolNilStat EmptyStat LocalAssignLocalFunAssign FunAssignForInForRangeIfRepeatWhileDoGotoBreakLabelAssignName$fNFDataFunArg$fNFDataFunCall$fNFDataFunBody$fNFDataFunDef$fNFDataFunName $fNFDataBlock$fNFDataTableField $fNFDataTable$fNFDataPrefixExp $fNFDataUnop $fNFDataBinop $fNFDataVar $fNFDataExp $fNFDataStat $fNFDataName$fAnnotatedFunArg$fAnnotatedFunCall$fAnnotatedFunBody$fAnnotatedFunDef$fAnnotatedFunName$fAnnotatedBlock$fAnnotatedTableField$fAnnotatedTable$fAnnotatedPrefixExp$fAnnotatedUnop$fAnnotatedBinop$fAnnotatedVar$fAnnotatedExp$fAnnotatedStat renderPrettydisplayS displayIOLTokenLTokEof LTokIdentLTokSLitLTokNum LTokWhile LTokUntilLTokTrueLTokThen LTokReturn LTokRepeatLTokOrLTokNotLTokNil LTokLocalLTokInLTokIfLTokGoto LTokFunctionLTokFor LTokFalseLTokEnd LTokElseIfLTokElseLTokDo LTokBreakLTokAnd LTokEllipsisLTokDDotLTokDot LTokComma LTokColon LTokSemic LTokDColon LTokRBracket LTokLBracket LTokRBrace LTokLBrace LTokRParen LTokLParen LTokAssignLTokGTLTokLTLTokGEqLTokLEq LTokNotequal LTokEqualLTokShLTokExp LTokPercent LTokSlashLTokStar LTokMinusLTokPlus $fShowLTokenLTokAlexPosnAlexPnllexllexFileParsertokanyIdentnumber stringlit parseText parseFileexpstatchunkLPrettypprintsNamesStatsExpsBlocksVarsFunCallsFunNamesFunBodysFunDef sPrefixExpsTablesBinopsUnopsFunArg sTableFieldbaseGHC.Basefmap SimpleDocDocGHC.ShowShowPrettylisttupled semiBraces encloseSep punctuatesepfillSephsepvsepgroupaligncatfillCathcatvcat<>empty<+>softline softbreak<$>line<$$>spacesquotesdquotesbracesparensanglesbracketsencloselparenrparenlangleranglelbracerbracelbracketrbracketsquotedquotesemicoloncommadot backslashequalsstringtextintintegerfloatdoublerational fillBreakfillindenthangchar linebreaknestshowputDochPutDoc renderCompactShowSDocsConsSLineSTextSCharSEmptyNestingColumnUnionNestCatLineTextCharEmptypretty prettyListfoldboolwidthisEmptybesidecolumnnestingflattenfitsspaces indentation $fShowDoc $fPrettyMaybe $fPretty(,,) $fPretty(,)$fPrettyDouble $fPrettyFloat$fPrettyInteger $fPrettyInt $fPrettyChar $fPrettyBool $fPretty() $fPrettyDoc $fPretty[] utf8EncodeAlexAcc AlexAccSkip AlexAccNone AlexLastAcc AlexLastSkipAlexNone AlexReturn AlexTokenAlexSkip AlexErrorAlexEOFAlexAddrAlexA#EOF AlexUserState stringStatestringDelimLen stringPosn stringValue commentState AlexActionAlexunAlex AlexStatealex_posalex_inpalex_chr alex_bytesalex_scdalex_ust AlexInputByteignorePendingBytesalexInputPrevChar alexGetByte alexStartPosalexMoverunAlex alexGetInput alexSetInput alexErroralexGetStartCodealexSetStartCodealexGetUserStatealexSetUserState alexMonadScanskipbeginandBegintoken alex_base alex_table alex_check alex_deflt alex_acceptalexInitUserState initString initCommentgetStringDelimLen getStringPosngetStringValuegetStringStategetCommentStateaddCharToStringValue putInputBack enterString enterComment addStringaddCharToString endString endCommenttestAndEndCommenttestAndEndStringmkStringreplaceCharCodesskipWShexToIntdecToNum readString tokWValueidentalexEOFalexMonadScan'scanner state_comment state_string alex_action_1 alex_action_2 alex_action_3 alex_action_4 alex_action_5 alex_action_6 alex_action_7 alex_action_8 alex_action_9alex_action_10alex_action_11alex_action_12alex_action_13alex_action_15alex_action_16alex_action_17alex_action_18alex_action_19alex_action_20alex_action_21alex_action_22alex_action_23alex_action_24alex_action_25alex_action_26alex_action_27alex_action_28alex_action_29alex_action_30alex_action_31alex_action_32alex_action_33alex_action_34alex_action_35alex_action_36alex_action_37alex_action_38alex_action_39alex_action_40alex_action_41alex_action_42alex_action_43alexIndexInt16OffAddralexIndexInt32OffAddr quickIndexalexScan alexScanUser alex_scan_tkniUnbox$fFunctorAlexLastAcc $fMonadAlex$fApplicativeAlex $fFunctorAlexsatisfy'nextPosUnop'Binop' SuffixExpSFunCall SSelectMethod SSelectExpSSelect SuffixedExp PrimaryExpPParenPNamename primaryExp suffixedExp suffixExp sexpToPexp sexpToVar sexpToFunCallvarfunCallfunArgfunBodyblockretstat tableFieldtablenilExpboolExp numberExp stringExp varargExp fundefExp prefixexpExp tableconstExpbinopunopsubexp simpleExp emptyStat assignStat funCallStat labelStat breakStatgotoStatdoStat whileStat repeatStatifStat forRangeStat forInStat funAssignStatlocalFunAssignStatlocalAssignStatpprint' Precedence intercalate getBinopPrec getUnopPrecpprintFunction $fLPrettyStat$fLPrettyFunArg$fLPrettyFunCall$fLPrettyFunBody$fLPrettyFunName$fLPrettyBlock$fLPrettyTableField $fLPretty[]$fLPrettyPrefixExp $fLPrettyUnop$fLPrettyBinop $fLPrettyVar $fLPrettyExp $fLPrettyBool $fLPretty[]0