author | Jan Vrany <jan.vrany@labware.com> |
Wed, 10 Jun 2020 21:33:27 +0100 | |
changeset 650 | 4c6ed0a28d18 |
parent 642 | 77d5fddb6462 |
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:
378
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:
378
diff
changeset
|
2 |
|
4 | 3 |
"{ Package: 'stx:goodies/petitparser' }" |
0 | 4 |
|
5 |
PPDelegateParser subclass:#PPNotParser |
|
6 |
instanceVariableNames:'' |
|
7 |
classVariableNames:'' |
|
8 |
poolDictionaries:'' |
|
9 |
category:'PetitParser-Parsers' |
|
10 |
! |
|
11 |
||
12 |
||
378
53d66ecfeb1b
Merged in latest version from Moose repository
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
377
diff
changeset
|
13 |
|
53d66ecfeb1b
Merged in latest version from Moose repository
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
377
diff
changeset
|
14 |
|
0 | 15 |
!PPNotParser methodsFor:'parsing'! |
16 |
||
377
6112a403a52d
Updated to latest version from Moose repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
43
diff
changeset
|
17 |
parseOn: aPPContext |
6112a403a52d
Updated to latest version from Moose repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
43
diff
changeset
|
18 |
| element memento | |
6112a403a52d
Updated to latest version from Moose repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
43
diff
changeset
|
19 |
memento := aPPContext remember. |
6112a403a52d
Updated to latest version from Moose repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
43
diff
changeset
|
20 |
element := parser parseOn: aPPContext. |
6112a403a52d
Updated to latest version from Moose repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
43
diff
changeset
|
21 |
aPPContext restore: memento. |
0 | 22 |
^ element isPetitFailure |
377
6112a403a52d
Updated to latest version from Moose repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
43
diff
changeset
|
23 |
ifFalse: [ PPFailure message: '' context: aPPContext ] |
0 | 24 |
! ! |
25 |
||
26 |
!PPNotParser class methodsFor:'documentation'! |
|
27 |
||
43 | 28 |
version |
29 |
^ '$Header: /cvs/stx/stx/goodies/petitparser/PPNotParser.st,v 1.3 2012-05-04 22:06:22 vrany Exp $' |
|
30 |
! |
|
31 |
||
32 |
version_CVS |
|
33 |
^ '$Header: /cvs/stx/stx/goodies/petitparser/PPNotParser.st,v 1.3 2012-05-04 22:06:22 vrany Exp $' |
|
34 |
! |
|
35 |
||
0 | 36 |
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:
378
diff
changeset
|
37 |
^ '§Id: PPNotParser.st 2 2010-12-17 18:44:23Z vranyj1 §' |
0 | 38 |
! ! |
377
6112a403a52d
Updated to latest version from Moose repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
43
diff
changeset
|
39 |