|
|
Class: SmalltalkLanguage
Object
|
+--ProgrammingLanguage
|
+--SmalltalkLanguage
- Package:
- stx:libbasic
- Category:
- Kernel-Languages
- Version:
- rev:
1.12
date: 2009/11/12 13:53:17
- user: stefan
- file: SmalltalkLanguage.st directory: libbasic
- module: stx stc-classLibrary: libbasic
provide info about which tools are to be used for smalltalk code
accessing
-
name
-
Answers a human-readable name of myself:
'Smalltalk' for SmalltalkLanguage,
'Ruby' for RubyLanguage
...
-
sourceFileSuffix
-
Answers a default suffix for source files, i.e.
'st' for Smalltalk, 'js' for JavaScript or 'rb' for Ruby'
accessing - classes
-
compilerClass
-
Answer a class suitable for compiling a source code in 'my' language
-
explainerClass
-
Answers a class used by browser and debugger to
show some hints about the code. It is OK to return
nil, which means that there is no explainer for given language.
-
formatterClass
-
Answer a class suitable for prettyPrinting (indenting) code in 'my' language.
It is ok to return nil, which means that the browser will not be able to prettyprint.
-
parserClass
-
Answer a class suitable for parsing a source codein 'my' language
-
sourceFileReaderClass
-
Answers a class that can be used for reading & compiling source files
-
sourceFileWriterClass
-
Answers a class is used for source file writing (i.e. file-out)
-
syntaxHighlighterClass
-
return the class to use for syntaxHighlighting (prettyPrinting) this class -
this can be redefined in special classes, to highlight classes with
Lisp, Prolog, ASN1, Basic :-) or whatever syntax.
mimicry
-
, anObject
-
Emulates symbol behavior. This is sometimes required
as Smalltalk language is used by legacy code to access
current language. Future versions should contain class
Locale.
** This is an obsolete interface - do not use it (it may vanish in future versions) **
-
asSymbol
-
Returns a language symbol. This is sometimes required
as Smalltalk language is used by legacy code to access
current language. Future versions should contain class
Locale.
** This is an obsolete interface - do not use it (it may vanish in future versions) **
testing
-
isSmalltalk
-
true iff I represent the smalltalk language
utilities - source code
-
methodTemplate
-
return a method definition template string
|