analyzer/tests/stx_goodies_petitparser_analyzer_tests.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Wed, 19 Nov 2014 10:52:37 +0000
changeset 420 b2f2f15cef26
parent 405 0470a5e6e712
child 425 0a5c4929af56
permissions -rw-r--r--
Moved benchmarks to a separate package
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
275
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     1
"{ Package: 'stx:goodies/petitparser/analyzer/tests' }"
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     2
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
LibraryDefinition subclass:#stx_goodies_petitparser_analyzer_tests
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
	instanceVariableNames:''
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
	classVariableNames:''
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
	poolDictionaries:''
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     7
	category:'* Projects & Packages *'
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
!
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     9
386
a409905f7f2d Smalltalk parser almost fixed (except few pragma-related tests).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 382
diff changeset
    10
382
1825151d6455 Added target `mcz` to export .mcz package out of Smalltalk/X package.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 380
diff changeset
    11
!stx_goodies_petitparser_analyzer_tests class methodsFor:'accessing - monticello'!
1825151d6455 Added target `mcz` to export .mcz package out of Smalltalk/X package.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 380
diff changeset
    12
1825151d6455 Added target `mcz` to export .mcz package out of Smalltalk/X package.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 380
diff changeset
    13
monticelloLastMergedVersionInfo
1825151d6455 Added target `mcz` to export .mcz package out of Smalltalk/X package.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 380
diff changeset
    14
    "The last merged version is: "
1825151d6455 Added target `mcz` to export .mcz package out of Smalltalk/X package.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 380
diff changeset
    15
1825151d6455 Added target `mcz` to export .mcz package out of Smalltalk/X package.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 380
diff changeset
    16
    ^ '
405
0470a5e6e712 Merged PetitParser and PetitTests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 386
diff changeset
    17
    Name: PetitAnalyzer-JanKurs.48
0470a5e6e712 Merged PetitParser and PetitTests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 386
diff changeset
    18
    Author: JanKurs
0470a5e6e712 Merged PetitParser and PetitTests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 386
diff changeset
    19
    Time: 30-10-2014, 12:53:26 PM
0470a5e6e712 Merged PetitParser and PetitTests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 386
diff changeset
    20
    UUID: 13464ded-5457-4b5b-ba2f-b4ab7dcec782 
382
1825151d6455 Added target `mcz` to export .mcz package out of Smalltalk/X package.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 380
diff changeset
    21
    '
1825151d6455 Added target `mcz` to export .mcz package out of Smalltalk/X package.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 380
diff changeset
    22
1825151d6455 Added target `mcz` to export .mcz package out of Smalltalk/X package.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 380
diff changeset
    23
    "Created: / 03-10-2014 / 02:40:20 / Jan Vrany <jan.vrany@fit.cvut.cz>"
405
0470a5e6e712 Merged PetitParser and PetitTests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 386
diff changeset
    24
    "Modified: / 03-11-2014 / 09:00:41 / Jan Vrany <jan.vrany@fit.cvut.cz>"
382
1825151d6455 Added target `mcz` to export .mcz package out of Smalltalk/X package.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 380
diff changeset
    25
!
1825151d6455 Added target `mcz` to export .mcz package out of Smalltalk/X package.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 380
diff changeset
    26
1825151d6455 Added target `mcz` to export .mcz package out of Smalltalk/X package.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 380
diff changeset
    27
monticelloName
1825151d6455 Added target `mcz` to export .mcz package out of Smalltalk/X package.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 380
diff changeset
    28
    "Return name of the package for Monticello. This is used when package is exported"
1825151d6455 Added target `mcz` to export .mcz package out of Smalltalk/X package.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 380
diff changeset
    29
1825151d6455 Added target `mcz` to export .mcz package out of Smalltalk/X package.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 380
diff changeset
    30
    ^ 'PetitAnalyzerTests'
1825151d6455 Added target `mcz` to export .mcz package out of Smalltalk/X package.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 380
diff changeset
    31
1825151d6455 Added target `mcz` to export .mcz package out of Smalltalk/X package.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 380
diff changeset
    32
    "Created: / 03-10-2014 / 01:48:26 / Jan Vrany <jan.vrany@fit.cvut.cz>"
1825151d6455 Added target `mcz` to export .mcz package out of Smalltalk/X package.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 380
diff changeset
    33
    "Modified: / 04-10-2014 / 21:37:51 / Jan Vrany <jan.vrany@fit.cvut.cz>"
1825151d6455 Added target `mcz` to export .mcz package out of Smalltalk/X package.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 380
diff changeset
    34
! !
1825151d6455 Added target `mcz` to export .mcz package out of Smalltalk/X package.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 380
diff changeset
    35
275
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
!stx_goodies_petitparser_analyzer_tests class methodsFor:'description'!
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
excludedFromPreRequisites
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
    "list all packages which should be ignored in the automatic
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
     preRequisites scan. See #preRequisites for more."
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    41
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    42
    ^ #(
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    43
    )
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
!
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    45
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    46
mandatoryPreRequisites
382
1825151d6455 Added target `mcz` to export .mcz package out of Smalltalk/X package.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 380
diff changeset
    47
    "list packages which are mandatory as a prerequisite.
1825151d6455 Added target `mcz` to export .mcz package out of Smalltalk/X package.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 380
diff changeset
    48
     This are packages containing superclasses of my classes and classes which
1825151d6455 Added target `mcz` to export .mcz package out of Smalltalk/X package.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 380
diff changeset
    49
     are extended by myself.
1825151d6455 Added target `mcz` to export .mcz package out of Smalltalk/X package.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 380
diff changeset
    50
     They are mandatory, because we need these packages as a prerequisite for loading and compiling.
1825151d6455 Added target `mcz` to export .mcz package out of Smalltalk/X package.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 380
diff changeset
    51
     This method is generated automatically,
1825151d6455 Added target `mcz` to export .mcz package out of Smalltalk/X package.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 380
diff changeset
    52
     by searching along the inheritance chain of all of my classes."
275
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    53
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    54
    ^ #(
420
b2f2f15cef26 Moved benchmarks to a separate package
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 405
diff changeset
    55
        #'stx:libbasic'    "Autoload - superclass of PPAnalyzerTest"
275
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    56
    )
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    57
!
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    58
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
referencedPreRequisites
382
1825151d6455 Added target `mcz` to export .mcz package out of Smalltalk/X package.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 380
diff changeset
    60
    "list packages which are a prerequisite, because they contain
1825151d6455 Added target `mcz` to export .mcz package out of Smalltalk/X package.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 380
diff changeset
    61
     classes which are referenced by my classes.
1825151d6455 Added target `mcz` to export .mcz package out of Smalltalk/X package.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 380
diff changeset
    62
     We do not need these packages as a prerequisite for loading or compiling.
1825151d6455 Added target `mcz` to export .mcz package out of Smalltalk/X package.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 380
diff changeset
    63
     This method is generated automatically,
1825151d6455 Added target `mcz` to export .mcz package out of Smalltalk/X package.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 380
diff changeset
    64
     by searching all classes (and their packages) which are referenced by my classes."
275
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    65
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    66
    ^ #(
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    67
    )
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    68
!
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    69
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    70
subProjects
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    71
    "list packages which are known as subprojects.
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    72
     The generated makefile will enter those and make there as well.
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    73
     However: they are not forced to be loaded when a package is loaded;
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    74
     for those, redefine requiredPrerequisites"
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    75
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    76
    ^ #(
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    77
    )
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    78
! !
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    79
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    80
!stx_goodies_petitparser_analyzer_tests class methodsFor:'description - contents'!
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    81
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    82
classNamesAndAttributes
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    83
    "lists the classes which are to be included in the project.
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    84
     Each entry in the list may be: a single class-name (symbol),
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    85
     or an array-literal consisting of class name and attributes.
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    86
     Attributes are: #autoload or #<os> where os is one of win32, unix,..."
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    87
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    88
    ^ #(
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    89
        "<className> or (<className> attributes...) in load order"
420
b2f2f15cef26 Moved benchmarks to a separate package
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 405
diff changeset
    90
        #'stx_goodies_petitparser_analyzer_tests'
380
8fe3cb4e607f Remove Pharoisms to make code more portable and running on Smalltalk/X
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 275
diff changeset
    91
        (PPAnalyzerTest autoload)
8fe3cb4e607f Remove Pharoisms to make code more portable and running on Smalltalk/X
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 275
diff changeset
    92
        (PPRewriterTest autoload)
8fe3cb4e607f Remove Pharoisms to make code more portable and running on Smalltalk/X
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 275
diff changeset
    93
        (PPSearcherTest autoload)
275
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    94
    )
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    95
!
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    96
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    97
extensionMethodNames
382
1825151d6455 Added target `mcz` to export .mcz package out of Smalltalk/X package.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 380
diff changeset
    98
    "list class/selector pairs of extensions.
1825151d6455 Added target `mcz` to export .mcz package out of Smalltalk/X package.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 380
diff changeset
    99
     A correponding method with real names must be present in my concrete subclasses"
275
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   100
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   101
    ^ #(
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   102
    )
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   103
! !
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   104
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   105
!stx_goodies_petitparser_analyzer_tests class methodsFor:'description - project information'!
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   106
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   107
companyName
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   108
    "Return a companyname which will appear in <lib>.rc"
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   109
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   110
    ^ 'eXept Software AG'
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   111
!
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   112
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   113
description
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   114
    "Return a description string which will appear in vc.def / bc.def"
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   115
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   116
    ^ 'Smalltalk/X Class library'
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   117
!
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   118
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   119
legalCopyright
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   120
    "Return a copyright string which will appear in <lib>.rc"
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   121
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   122
    ^ 'Copyright Claus Gittinger 1988-2014\nCopyright eXept Software AG 1998-2014'
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   123
!
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   124
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   125
productName
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   126
    "Return a product name which will appear in <lib>.rc"
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   127
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   128
    ^ 'Smalltalk/X'
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   129
! !
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   130
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   131
!stx_goodies_petitparser_analyzer_tests class methodsFor:'documentation'!
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   132
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   133
version
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   134
    ^ '$Header: /cvs/stx/stx/goodies/petitparser/analyzer/tests/stx_goodies_petitparser_analyzer_tests.st,v 1.1 2014-03-04 20:26:59 cg Exp $'
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   135
!
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   136
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   137
version_CVS
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   138
    ^ '$Header: /cvs/stx/stx/goodies/petitparser/analyzer/tests/stx_goodies_petitparser_analyzer_tests.st,v 1.1 2014-03-04 20:26:59 cg Exp $'
380
8fe3cb4e607f Remove Pharoisms to make code more portable and running on Smalltalk/X
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 275
diff changeset
   139
!
8fe3cb4e607f Remove Pharoisms to make code more portable and running on Smalltalk/X
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 275
diff changeset
   140
8fe3cb4e607f Remove Pharoisms to make code more portable and running on Smalltalk/X
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 275
diff changeset
   141
version_HG
8fe3cb4e607f Remove Pharoisms to make code more portable and running on Smalltalk/X
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 275
diff changeset
   142
8fe3cb4e607f Remove Pharoisms to make code more portable and running on Smalltalk/X
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 275
diff changeset
   143
    ^ '$Changeset: <not expanded> $'
275
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   144
! !
d4be37b311b0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   145