stx_libjavascript.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Tue, 24 Sep 2013 23:18:24 +0200
branchinitialV
changeset 1180 01c6be61f29c
parent 699 3d7d48f8b145
child 723 f319d3caa621
permissions -rw-r--r--
checkin from stx browser
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
342
3052e916b67d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 334
diff changeset
     1
"
3052e916b67d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 334
diff changeset
     2
 COPYRIGHT (c) 2006 by eXept Software AG
3052e916b67d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 334
diff changeset
     3
              All Rights Reserved
3052e916b67d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 334
diff changeset
     4
3052e916b67d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 334
diff changeset
     5
 This software is furnished under a license and may be used
3052e916b67d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 334
diff changeset
     6
 only in accordance with the terms of that license and with the
3052e916b67d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 334
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
3052e916b67d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 334
diff changeset
     8
 be provided or otherwise made available to, or used by, any
3052e916b67d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 334
diff changeset
     9
 other person.  No title to or ownership of the software is
3052e916b67d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 334
diff changeset
    10
 hereby transferred.
3052e916b67d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 334
diff changeset
    11
"
217
5e34f6d09f36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
"{ Package: 'stx:libjavascript' }"
5e34f6d09f36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
5e34f6d09f36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
LibraryDefinition subclass:#stx_libjavascript
5e34f6d09f36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
	instanceVariableNames:''
5e34f6d09f36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
	classVariableNames:''
5e34f6d09f36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
	poolDictionaries:''
249
5777e877d9bc Category change
Stefan Vogel <sv@exept.de>
parents: 226
diff changeset
    18
	category:'* Projects & Packages *'
217
5e34f6d09f36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
!
5e34f6d09f36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
342
3052e916b67d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 334
diff changeset
    21
!stx_libjavascript class methodsFor:'documentation'!
3052e916b67d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 334
diff changeset
    22
3052e916b67d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 334
diff changeset
    23
copyright
3052e916b67d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 334
diff changeset
    24
"
3052e916b67d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 334
diff changeset
    25
 COPYRIGHT (c) 2006 by eXept Software AG
3052e916b67d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 334
diff changeset
    26
              All Rights Reserved
3052e916b67d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 334
diff changeset
    27
3052e916b67d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 334
diff changeset
    28
 This software is furnished under a license and may be used
3052e916b67d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 334
diff changeset
    29
 only in accordance with the terms of that license and with the
3052e916b67d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 334
diff changeset
    30
 inclusion of the above copyright notice.   This software may not
3052e916b67d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 334
diff changeset
    31
 be provided or otherwise made available to, or used by, any
3052e916b67d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 334
diff changeset
    32
 other person.  No title to or ownership of the software is
3052e916b67d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 334
diff changeset
    33
 hereby transferred.
3052e916b67d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 334
diff changeset
    34
"
3052e916b67d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 334
diff changeset
    35
!
3052e916b67d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 334
diff changeset
    36
3052e916b67d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 334
diff changeset
    37
documentation
3052e916b67d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 334
diff changeset
    38
"
558
1438a24d1ee3 comment
Claus Gittinger <cg@exept.de>
parents: 556
diff changeset
    39
    Build- and package information for creation of the st/x standard library: stx_libjavascript.
342
3052e916b67d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 334
diff changeset
    40
    This library contains a JavaSript Parser/Compiler, generating smalltalk bytecode.
3052e916b67d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 334
diff changeset
    41
"
3052e916b67d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 334
diff changeset
    42
! !
217
5e34f6d09f36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    43
329
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
    44
!stx_libjavascript class methodsFor:'description'!
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
    45
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
    46
excludedFromPreRequisites
432
4d352485f72a automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
    47
    "list all packages which should be ignored in the automatic
4d352485f72a automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
    48
     preRequisites scan. See #preRequisites for more."
4d352485f72a automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
    49
329
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
    50
    ^ #(
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
    51
        #'stx:libbasic2'    "Random - referenced by Math class>>randomInteger:_: "
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
    52
        #'stx:libview'    "Color - referenced by JavaScriptSyntaxHighlighter>>markSelector:from:to:receiverNode:numArgs: "
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
    53
    )
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
    54
!
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
    55
578
c1ddcb0b55b1 Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 577
diff changeset
    56
mandatoryPreRequisites
c1ddcb0b55b1 Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 577
diff changeset
    57
    "list all required mandatory packages.
c1ddcb0b55b1 Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 577
diff changeset
    58
     Packages are mandatory, if they contain superclasses of the package's classes
c1ddcb0b55b1 Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 577
diff changeset
    59
     or classes which are extended by this package.
432
4d352485f72a automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
    60
     This list can be maintained manually or (better) generated and
578
c1ddcb0b55b1 Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 577
diff changeset
    61
     updated by scanning the superclass hierarchies
651
ccc0b00a9f48 Added JavaScriptParseNodeVisitor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 632
diff changeset
    62
     (the browser has a menu function for that)"
432
4d352485f72a automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
    63
329
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
    64
    ^ #(
651
ccc0b00a9f48 Added JavaScriptParseNodeVisitor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 632
diff changeset
    65
        #'stx:libbasic'    "AbstractSourceFileWriter - superclass of JavaScriptSourceFileWriter "
577
28b16e014536 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 561
diff changeset
    66
        #'stx:libbasic3'    "HTMLDocGenerator - superclass of HTMLDocGeneratorForJavaScript "
651
ccc0b00a9f48 Added JavaScriptParseNodeVisitor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 632
diff changeset
    67
        #'stx:libcomp'    "AssignmentNode - superclass of JavaScriptParser::JavaScriptAssignmentNode "
699
3d7d48f8b145 Added JavaScriptCompletionEngine/Parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 674
diff changeset
    68
        #'stx:libtool'    "CodeGeneratorTool - superclass of JavaScriptCodeGeneratorTool "
578
c1ddcb0b55b1 Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 577
diff changeset
    69
    )
c1ddcb0b55b1 Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 577
diff changeset
    70
!
c1ddcb0b55b1 Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 577
diff changeset
    71
c1ddcb0b55b1 Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 577
diff changeset
    72
referencedPreRequisites
c1ddcb0b55b1 Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 577
diff changeset
    73
    "list all packages containing classes referenced by the packages's members.
c1ddcb0b55b1 Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 577
diff changeset
    74
     This list can be maintained manually or (better) generated and
c1ddcb0b55b1 Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 577
diff changeset
    75
     updated by looking for global variable accesses
c1ddcb0b55b1 Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 577
diff changeset
    76
     (the browser has a menu function for that)
c1ddcb0b55b1 Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 577
diff changeset
    77
     However, often too much is found, and you may want to explicitely
c1ddcb0b55b1 Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 577
diff changeset
    78
     exclude individual packages in the #excludedFromPreRequisites method."
c1ddcb0b55b1 Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 577
diff changeset
    79
c1ddcb0b55b1 Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 577
diff changeset
    80
    ^ #(
699
3d7d48f8b145 Added JavaScriptCompletionEngine/Parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 674
diff changeset
    81
        #'stx:goodies/refactoryBrowser/parser'    "ParseTreeSearcher - referenced by JavaScriptCodeGeneratorTool>>codeFor_shouldImplementFor:inClass: "
3d7d48f8b145 Added JavaScriptCompletionEngine/Parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 674
diff changeset
    82
        #'stx:goodies/webServer'    "HTTPService - referenced by JavaScriptCodeGeneratorTool>>createDocumentationMethodFor: "
3d7d48f8b145 Added JavaScriptCompletionEngine/Parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 674
diff changeset
    83
        #'stx:libview2'    "ApplicationModel - referenced by JavaScriptCodeGeneratorTool>>anyApplicationClassInProjectOf: "
329
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
    84
    )
651
ccc0b00a9f48 Added JavaScriptParseNodeVisitor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 632
diff changeset
    85
!
ccc0b00a9f48 Added JavaScriptParseNodeVisitor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 632
diff changeset
    86
ccc0b00a9f48 Added JavaScriptParseNodeVisitor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 632
diff changeset
    87
subProjects
ccc0b00a9f48 Added JavaScriptParseNodeVisitor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 632
diff changeset
    88
    "list packages which are known as subprojects.
ccc0b00a9f48 Added JavaScriptParseNodeVisitor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 632
diff changeset
    89
     The generated makefile will enter those and make there as well.
ccc0b00a9f48 Added JavaScriptParseNodeVisitor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 632
diff changeset
    90
     However: they are not forced to be loaded when a package is loaded;
ccc0b00a9f48 Added JavaScriptParseNodeVisitor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 632
diff changeset
    91
     for those, redefine requiredPrerequisites"
ccc0b00a9f48 Added JavaScriptParseNodeVisitor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 632
diff changeset
    92
ccc0b00a9f48 Added JavaScriptParseNodeVisitor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 632
diff changeset
    93
    ^ #(
ccc0b00a9f48 Added JavaScriptParseNodeVisitor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 632
diff changeset
    94
    )
329
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
    95
! !
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
    96
226
0c6fede4493d automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 217
diff changeset
    97
!stx_libjavascript class methodsFor:'description - compilation'!
0c6fede4493d automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 217
diff changeset
    98
0c6fede4493d automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 217
diff changeset
    99
additionalDefinitions_nt_dot_mak
0c6fede4493d automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 217
diff changeset
   100
    ^ '
0c6fede4493d automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 217
diff changeset
   101
# see stdHeader_nt for LIBJAVASCRIPT_BASE
0c6fede4493d automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 217
diff changeset
   102
LIB_BASE_LD_ARG=-b:$(LIBJAVASCRIPT_BASE)
0c6fede4493d automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 217
diff changeset
   103
'
0c6fede4493d automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 217
diff changeset
   104
! !
0c6fede4493d automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 217
diff changeset
   105
217
5e34f6d09f36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   106
!stx_libjavascript class methodsFor:'description - contents'!
5e34f6d09f36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   107
5e34f6d09f36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   108
classNamesAndAttributes
432
4d352485f72a automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
   109
    "lists the classes which are to be included in the project.
4d352485f72a automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
   110
     Each entry in the list may be: a single class-name (symbol),
4d352485f72a automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
   111
     or an array-literal consisting of class name and attributes.
4d352485f72a automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
   112
     Attributes are: #autoload or #<os> where os is one of win32, unix,..."
4d352485f72a automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
   113
217
5e34f6d09f36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   114
    ^ #(
259
3c7be59885a2 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 249
diff changeset
   115
        "<className> or (<className> attributes...) in load order"
3c7be59885a2 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 249
diff changeset
   116
        HTMLDocGeneratorForJavaScript
329
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   117
        JavaScriptClass
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   118
        JavaScriptClassNode
561
1332c14d2fad class: stx_libjavascript
Stefan Vogel <sv@exept.de>
parents: 558
diff changeset
   119
        (JavaScriptCodeGeneratorTool autoload)
329
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   120
        JavaScriptEnvironment
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   121
        JavaScriptFunction
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   122
        JavaScriptFunctionNode
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   123
        JavaScriptMetaclass
487
717a141c011f automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 447
diff changeset
   124
        JavaScriptObject
329
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   125
        JavaScriptScanner
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   126
        JavaScriptSourceFileWriter
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   127
        JavaScriptSourceReader
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   128
        JavaScriptVariable
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   129
        JavaScriptVariableNode
304
06b44206f872 added Math
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   130
        Math
487
717a141c011f automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 447
diff changeset
   131
        STXJavaScriptLanguage
329
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   132
        #'stx_libjavascript'
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   133
        JavaScriptInnerFunctionNode
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   134
        JavaScriptParser
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   135
        JavaScriptCompiler
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   136
        JavaScriptSyntaxHighlighter
619
13c097ec13d5 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 579
diff changeset
   137
        JavaScriptCompilerWithBreakpointSupport
632
46a1ea814b8c automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 619
diff changeset
   138
        JavaScriptFunctionWithBreakpoints
667
3a874ba2f68f Compilation fixes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 651
diff changeset
   139
        (JavaScriptParseNodeVisitor autoload)
674
d2d2808228ca initial checkin
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 667
diff changeset
   140
        (JavaScriptParseNodeValidator autoload)
699
3d7d48f8b145 Added JavaScriptCompletionEngine/Parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 674
diff changeset
   141
        JavaScriptCompletionEngine
3d7d48f8b145 Added JavaScriptCompletionEngine/Parser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 674
diff changeset
   142
        JavaScriptCompletionParser
217
5e34f6d09f36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   143
    )
5e34f6d09f36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   144
!
5e34f6d09f36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   145
5e34f6d09f36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   146
extensionMethodNames
432
4d352485f72a automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
   147
    "lists the extension methods which are to be included in the project.
4d352485f72a automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
   148
     Entries are 2-element array literals, consisting of class-name and selector."
4d352485f72a automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 427
diff changeset
   149
217
5e34f6d09f36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   150
    ^ #(
329
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   151
        AbstractTime getDate
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   152
        AbstractTime getDay
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   153
        AbstractTime getFullYear
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   154
        AbstractTime getHours
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   155
        AbstractTime getMinutes
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   156
        AbstractTime getMonth
561
1332c14d2fad class: stx_libjavascript
Stefan Vogel <sv@exept.de>
parents: 558
diff changeset
   157
        AbstractTime #'js_add:'
1332c14d2fad class: stx_libjavascript
Stefan Vogel <sv@exept.de>
parents: 558
diff changeset
   158
        AbstractTime #'js_addFromTime:'
329
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   159
        AbstractTime #'js_getMilliseconds'
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   160
        AbstractTime #'js_getSeconds'
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   161
        ArithmeticValue #'js_add:'
561
1332c14d2fad class: stx_libjavascript
Stefan Vogel <sv@exept.de>
parents: 558
diff changeset
   162
        ArithmeticValue #'js_addFromNumber:'
1332c14d2fad class: stx_libjavascript
Stefan Vogel <sv@exept.de>
parents: 558
diff changeset
   163
        ArithmeticValue #'js_addFromTime:'
329
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   164
        Behavior #'js_new'
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   165
        Behavior #'js_new:'
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   166
        Block typeof
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   167
        Boolean typeof
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   168
        CharacterArray charAt0:
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   169
        CharacterArray charAt1:
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   170
        CharacterArray charCodeAt0:
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   171
        CharacterArray charCodeAt1:
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   172
        CharacterArray indexOf0:
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   173
        CharacterArray indexOf1:
561
1332c14d2fad class: stx_libjavascript
Stefan Vogel <sv@exept.de>
parents: 558
diff changeset
   174
        CharacterArray #'js_add:'
1332c14d2fad class: stx_libjavascript
Stefan Vogel <sv@exept.de>
parents: 558
diff changeset
   175
        CharacterArray #'js_addFromNumber:'
1332c14d2fad class: stx_libjavascript
Stefan Vogel <sv@exept.de>
parents: 558
diff changeset
   176
        CharacterArray #'js_addFromString:'
1332c14d2fad class: stx_libjavascript
Stefan Vogel <sv@exept.de>
parents: 558
diff changeset
   177
        CharacterArray #'js_addFromTime:'
329
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   178
        CharacterArray lastIndexOf0:
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   179
        CharacterArray lastIndexOf1:
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   180
        CharacterArray quote
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   181
        CharacterArray split:
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   182
        CharacterArray #'substr0:_:'
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   183
        CharacterArray #'substr1:_:'
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   184
        CharacterArray substring0:
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   185
        CharacterArray #'substring0:_:'
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   186
        CharacterArray substring1:
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   187
        CharacterArray #'substring1:_:'
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   188
        CharacterArray toLowerCase
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   189
        CharacterArray toUpperCase
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   190
        CharacterArray trim
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   191
        CharacterArray trimLeft
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   192
        CharacterArray trimRight
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   193
        CharacterArray typeof
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   194
        Collection length
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   195
        Number toExponential:
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   196
        Number #'toExponential:_:'
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   197
        Number toFixed:
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   198
        Number typeof
561
1332c14d2fad class: stx_libjavascript
Stefan Vogel <sv@exept.de>
parents: 558
diff changeset
   199
        Object #'js_addFromString:'
329
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   200
        Object typeof
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   201
        SequenceableCollection concat:
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   202
        SequenceableCollection every:
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   203
        SequenceableCollection filter:
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   204
        SequenceableCollection forEach:
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   205
        SequenceableCollection indexOf0:
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   206
        SequenceableCollection indexOf1:
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   207
        SequenceableCollection join:
427
58d3331aac66 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 411
diff changeset
   208
        SequenceableCollection #'js_add:'
329
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   209
        SequenceableCollection #'js_map:'
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   210
        SequenceableCollection lastIndexOf0:
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   211
        SequenceableCollection lastIndexOf1:
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   212
        SequenceableCollection pop
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   213
        SequenceableCollection push:
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   214
        SequenceableCollection reduce0:
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   215
        SequenceableCollection #'reduce0:_:'
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   216
        SequenceableCollection reduce1:
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   217
        SequenceableCollection #'reduce1:_:'
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   218
        SequenceableCollection shift
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   219
        SequenceableCollection #'slice0:_:'
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   220
        SequenceableCollection #'slice1:_:'
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   221
        SequenceableCollection some:
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   222
        SequenceableCollection unshift:
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   223
        Stream #'show:_:'
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   224
        Stream #'show:_:_:'
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   225
        Stream #'show:_:_:_:'
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   226
        Stream #'show:_:_:_:_:'
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   227
        Stream #'show:_:_:_:_:_:'
561
1332c14d2fad class: stx_libjavascript
Stefan Vogel <sv@exept.de>
parents: 558
diff changeset
   228
        Stream #'show:_:_:_:_:_:_:'
329
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   229
        Stream #'showCR:_:'
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   230
        Stream #'showCR:_:_:'
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   231
        Stream #'showCR:_:_:_:'
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   232
        Stream #'showCR:_:_:_:_:'
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   233
        Stream #'showCR:_:_:_:_:_:'
561
1332c14d2fad class: stx_libjavascript
Stefan Vogel <sv@exept.de>
parents: 558
diff changeset
   234
        Stream #'showCR:_:_:_:_:_:_:'
329
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   235
        UndefinedObject typeof
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   236
        'Collection class' #'with:_:'
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   237
        'Collection class' #'with:_:_:'
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   238
        'Collection class' #'with:_:_:_:'
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   239
        'Collection class' #'with:_:_:_:_:'
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   240
        'Collection class' #'with:_:_:_:_:_:'
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   241
        'Collection class' #'with:_:_:_:_:_:_:'
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   242
        'Collection class' #'with:_:_:_:_:_:_:_:'
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   243
        'Date class' #'js_new:'
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   244
        'Date class' now
561
1332c14d2fad class: stx_libjavascript
Stefan Vogel <sv@exept.de>
parents: 558
diff changeset
   245
        'GenericException class' #'js_new:'
329
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   246
        'Number class' #'MAX_VALUE'
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   247
        'Number class' #'MIN_VALUE'
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   248
        'Number class' #'NEGATIVE_INFINITY'
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   249
        'Number class' NaN
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   250
        'Number class' #'POSITIVE_INFINITY'
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   251
        'Number class' #'js_new:'
3518ed722737 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 304
diff changeset
   252
        'String class' fromCharCode:
217
5e34f6d09f36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   253
    )
5e34f6d09f36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   254
! !
5e34f6d09f36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   255
5e34f6d09f36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   256
!stx_libjavascript class methodsFor:'description - project information'!
5e34f6d09f36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   257
577
28b16e014536 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 561
diff changeset
   258
applicationIconFileName
28b16e014536 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 561
diff changeset
   259
    "Return the name (without suffix) of an icon-file (the app's icon); will be included in the rc-resource file"
28b16e014536 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 561
diff changeset
   260
28b16e014536 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 561
diff changeset
   261
    ^ nil
28b16e014536 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 561
diff changeset
   262
    "/ ^ self applicationName
28b16e014536 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 561
diff changeset
   263
!
28b16e014536 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 561
diff changeset
   264
217
5e34f6d09f36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   265
companyName
5e34f6d09f36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   266
    "Return a companyname which will appear in <lib>.rc"
5e34f6d09f36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   267
5e34f6d09f36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   268
    ^ 'eXept Software AG'
5e34f6d09f36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   269
!
5e34f6d09f36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   270
5e34f6d09f36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   271
description
5e34f6d09f36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   272
    "Return a description string which will appear in nt.def / bc.def"
5e34f6d09f36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   273
334
75f7500ab7d1 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 329
diff changeset
   274
    ^ 'Smalltalk/X JavaScript Compiler'
217
5e34f6d09f36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   275
!
5e34f6d09f36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   276
5e34f6d09f36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   277
legalCopyright
5e34f6d09f36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   278
    "Return a copyright string which will appear in <lib>.rc"
5e34f6d09f36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   279
534
cec962121b55 changed: #legalcopyright
Claus Gittinger <cg@exept.de>
parents: 507
diff changeset
   280
    ^ 'Copyright Claus Gittinger 1988-2012\nCopyright eXept Software AG 1998-2012'
262
27442b21812f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 261
diff changeset
   281
534
cec962121b55 changed: #legalcopyright
Claus Gittinger <cg@exept.de>
parents: 507
diff changeset
   282
    "Modified: / 18-07-2012 / 19:11:45 / cg"
577
28b16e014536 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 561
diff changeset
   283
!
28b16e014536 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 561
diff changeset
   284
28b16e014536 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 561
diff changeset
   285
productName
28b16e014536 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 561
diff changeset
   286
    "Return a product name which will appear in <lib>.rc"
28b16e014536 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 561
diff changeset
   287
28b16e014536 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 561
diff changeset
   288
    ^ 'Smalltalk/X'
217
5e34f6d09f36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   289
! !
5e34f6d09f36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   290
5e34f6d09f36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   291
!stx_libjavascript class methodsFor:'documentation'!
5e34f6d09f36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   292
5e34f6d09f36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   293
version
5e34f6d09f36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   294
    ^ '$Header$'
378
b0489cdbe371 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 353
diff changeset
   295
!
b0489cdbe371 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 353
diff changeset
   296
b0489cdbe371 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 353
diff changeset
   297
version_CVS
b0489cdbe371 automatic checkIn
Claus Gittinger <cg@exept.de>
parents: 353
diff changeset
   298
    ^ '$Header$'
217
5e34f6d09f36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   299
! !
577
28b16e014536 automatic checkIn
Stefan Vogel <sv@exept.de>
parents: 561
diff changeset
   300