author | Patrik Svestka <patrik.svestka@gmail.com> |
Wed, 14 Nov 2018 13:01:14 +0100 | |
changeset 642 | 77d5fddb6462 |
parent 99 | 57b4439a7998 |
permissions | -rw-r--r-- |
642
77d5fddb6462
Issue #239: Fix all Smalltak/X source files to be in unicode (UTF8 without BOM) and prefixed by "{ Encoding: utf8 }" when any unicode character is present
Patrik Svestka <patrik.svestka@gmail.com>
parents:
99
diff
changeset
|
1 |
"{ Encoding: utf8 }" |
77d5fddb6462
Issue #239: Fix all Smalltak/X source files to be in unicode (UTF8 without BOM) and prefixed by "{ Encoding: utf8 }" when any unicode character is present
Patrik Svestka <patrik.svestka@gmail.com>
parents:
99
diff
changeset
|
2 |
|
76 | 3 |
"{ Package: 'stx:goodies/petitparser/devtools' }" |
4 |
||
5 |
PPParser subclass:#PPDebuggingParser |
|
6 |
instanceVariableNames:'parser debugger' |
|
7 |
classVariableNames:'' |
|
8 |
poolDictionaries:'' |
|
9 |
category:'PetitParser-Debugging' |
|
10 |
! |
|
11 |
||
12 |
||
13 |
!PPDebuggingParser class methodsFor:'instance creation'! |
|
14 |
||
15 |
parser: parser debugger: debugger |
|
16 |
||
17 |
^self new parser: parser; debugger: debugger |
|
18 |
||
19 |
"Created: / 12-03-2012 / 16:47:11 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
20 |
! ! |
|
21 |
||
22 |
!PPDebuggingParser methodsFor:'accessing'! |
|
23 |
||
24 |
debugger |
|
25 |
^ debugger |
|
26 |
! |
|
27 |
||
28 |
debugger:aPPDebugger |
|
29 |
debugger := aPPDebugger. |
|
30 |
! |
|
31 |
||
32 |
parser |
|
33 |
^ parser |
|
34 |
! |
|
35 |
||
36 |
parser:aPPParser |
|
37 |
parser := aPPParser. |
|
38 |
! ! |
|
39 |
||
40 |
!PPDebuggingParser methodsFor:'parsing'! |
|
41 |
||
42 |
parseOn:aStream |
|
43 |
| result | |
|
44 |
||
45 |
debugger enterParser: parser stream: aStream. |
|
46 |
result := parser parseOn: aStream. |
|
47 |
debugger leaveParser: parser stream: aStream result: result. |
|
48 |
^result. |
|
49 |
||
50 |
"Modified: / 12-03-2012 / 16:41:29 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
51 |
! ! |
|
52 |
||
99
57b4439a7998
Added PPCompositeParserGenerator & PPParserVisitor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
76
diff
changeset
|
53 |
!PPDebuggingParser methodsFor:'visiting'! |
57b4439a7998
Added PPCompositeParserGenerator & PPParserVisitor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
76
diff
changeset
|
54 |
|
57b4439a7998
Added PPCompositeParserGenerator & PPParserVisitor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
76
diff
changeset
|
55 |
acceptVisitor:aVisitor |
57b4439a7998
Added PPCompositeParserGenerator & PPParserVisitor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
76
diff
changeset
|
56 |
"Double dispatch back to the visitor, passing my type encoded in |
57b4439a7998
Added PPCompositeParserGenerator & PPParserVisitor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
76
diff
changeset
|
57 |
the selector (visitor pattern)" |
57b4439a7998
Added PPCompositeParserGenerator & PPParserVisitor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
76
diff
changeset
|
58 |
|
57b4439a7998
Added PPCompositeParserGenerator & PPParserVisitor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
76
diff
changeset
|
59 |
"stub code automatically generated - please change if required" |
57b4439a7998
Added PPCompositeParserGenerator & PPParserVisitor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
76
diff
changeset
|
60 |
|
57b4439a7998
Added PPCompositeParserGenerator & PPParserVisitor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
76
diff
changeset
|
61 |
^ aVisitor visitPPDebuggingParser:self |
57b4439a7998
Added PPCompositeParserGenerator & PPParserVisitor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
76
diff
changeset
|
62 |
! ! |
57b4439a7998
Added PPCompositeParserGenerator & PPParserVisitor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
76
diff
changeset
|
63 |
|
76 | 64 |
!PPDebuggingParser class methodsFor:'documentation'! |
65 |
||
66 |
version |
|
99
57b4439a7998
Added PPCompositeParserGenerator & PPParserVisitor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
76
diff
changeset
|
67 |
^ '$Header: /cvs/stx/stx/goodies/petitparser/devtools/PPDebuggingParser.st,v 1.2 2013-01-10 13:22:02 vrany Exp $' |
76 | 68 |
! |
69 |
||
70 |
version_CVS |
|
99
57b4439a7998
Added PPCompositeParserGenerator & PPParserVisitor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
76
diff
changeset
|
71 |
^ '$Header: /cvs/stx/stx/goodies/petitparser/devtools/PPDebuggingParser.st,v 1.2 2013-01-10 13:22:02 vrany Exp $' |
76 | 72 |
! |
73 |
||
74 |
version_SVN |
|
642
77d5fddb6462
Issue #239: Fix all Smalltak/X source files to be in unicode (UTF8 without BOM) and prefixed by "{ Encoding: utf8 }" when any unicode character is present
Patrik Svestka <patrik.svestka@gmail.com>
parents:
99
diff
changeset
|
75 |
^ '§Id: PPDebuggingParser.st 10 2012-05-04 18:54:13Z vranyj1 §' |
76 | 76 |
! ! |