Module Expr Str Import alias alias Import alias Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam defaults Num NameLoad body Assign NameStore Num If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore Dict While Num body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad If UnaryOpNot NameLoad body Break Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index NameLoad TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr For TupleStore NameStore TupleStore NameStore NameStore NameLoad body If CompareEq SubscriptLoad NameLoad Slice Num Str body Assign NameStore Call NameLoad SubscriptLoad NameLoad Slice Num Num If CompareLt NameLoad Num body Assign NameStore BinOpMod Str NameLoad orelse Assign NameStore Call NameLoad NameLoad orelse Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str decorator_list If CompareEq NameLoad Str body If CompareGt Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num orelse Assign NameStore AttributeLoad NameLoad attr If CompareGt Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Str orelse Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad
N/A N/A  Utility for parsing HTML entity definitions available from:

      http://www.w3.org/ as e.g.
      http://www.w3.org/TR/REC-html40/HTMLlat1.ent

    Input is read from stdin, output is written to stdout in form of a
    Python snippet defining a dictionary "entitydefs" mapping literal
    entity name to character or numeric entity.

    Marc-Andre Lemburg, mal@lemburg.com, 1999.
    Use as you like. NO WARRANTIES.

 N/A re sys N/A TextTools N/A entityRE N/A N/A re compile <!ENTITY +(\w+) +CDATA +"([^"]+)" +-- +((?:.|
)+?) *--> parse N/A N/A text pos endpos N/A 0 None N/A N/A pos 0 N/A N/A endpos None N/A N/A endpos N/A len text N/A d N/A N/A 1 N/A N/A m N/A N/A entityRE search text pos endpos N/A N/A m N/A N/A N/A N/A name charcode comment N/A N/A m groups N/A N/A d N/A name N/A charcode comment N/A pos N/A N/A m end N/A d N/A writefile N/A N/A f defs N/A N/A N/A N/A N/A f write entitydefs = {
 N/A items N/A N/A defs items N/A N/A N/A items sort N/A N/A name N/A charcode comment items N/A N/A N/A N/A charcode N/A 2 &# N/A N/A code N/A int N/A charcode N/A 2 -1 N/A N/A code 256 N/A N/A charcode N/A '\%o' code N/A N/A charcode N/A repr charcode N/A N/A charcode N/A repr charcode N/A comment N/A N/A TextTools collapse comment N/A N/A N/A f write N/A     '%s':	%s,  	# %s
 N/A name charcode comment N/A N/A N/A f write 
}
 N/A N/A N/A __name__ __main__ N/A N/A N/A N/A len N/A sys argv 1 N/A N/A infile N/A open N/A N/A sys argv N/A 1 N/A N/A infile N/A sys stdin N/A N/A N/A len N/A sys argv 2 N/A N/A outfile N/A open N/A N/A sys argv N/A 2 w N/A N/A outfile N/A sys stdout N/A text N/A N/A infile read N/A defs N/A parse text N/A N/A writefile outfile defs