changed layout + literal tokens

This commit is contained in:
ari committed 2020-10-13 16:41:41 -04:00
1 parent da066edaf5
commit a0cc862804
12 files changed
+487 -106

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
import io
from pdfmajor.parser.PSStackParser.PSBaseParser import PSBaseParser
TESTDATA = br'''%!PS
begin end
" @ #
/a/BCD /Some_Name /foo#5f#xbaa
0 +1 -2 .5 1.234
(abc) () (abc ( def ) ghi)
(def\040\0\0404ghi) (bach\\slask) (foo\nbaa)
(this % is not a comment.)
(foo
baa)
(foo\
baa)
<> <20> < 40 4020 >
<abcd00
12345>
func/a/b{(c)do*}def
[ 1 (z) ! ]
<< /foo (bar) >>
'''
parser = PSBaseParser(io.BytesIO(TESTDATA))