eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'SmalltalkLanguage':

Home

everywhere
www.exept.de
for:
[back]

Class: SmalltalkLanguage


Inheritance:

   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

Description:


provide info about which tools are to be used for smalltalk code


Instance protocol:

accessing
o  name
Answers a human-readable name of myself:
'Smalltalk' for SmalltalkLanguage,
'Ruby' for RubyLanguage
...

o  sourceFileSuffix
Answers a default suffix for source files, i.e.
'st' for Smalltalk, 'js' for JavaScript or 'rb' for Ruby'

accessing - classes
o  compilerClass
Answer a class suitable for compiling a source code in 'my' language

o  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.

o  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.

o  parserClass
Answer a class suitable for parsing a source codein 'my' language

o  sourceFileReaderClass
Answers a class that can be used for reading & compiling source files

o  sourceFileWriterClass
Answers a class is used for source file writing (i.e. file-out)

o  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
o  , 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) **

o  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
o  isSmalltalk
true iff I represent the smalltalk language

utilities - source code
o  methodTemplate
return a method definition template string



ST/X 6.1.1; WebServer 1.620 at exept:8081; Wed, 23 May 2012 21:08:03 GMT