Class Luxor_Lang_Generic
A generic implementation of the Luxor_Lang API to handle all programming
languages that don't have a specific driver.
-
Luxor_Lang
-
Luxor_Lang_Generic
Methods summary
public
|
#
__construct( array $params )
Constructs a new generic language parser.
Constructs a new generic language parser.
Parameters
- $params
- A hash containing necessary parameters.
|
public
mixed
|
#
indexFile( string $path, integer $fileId )
Indexes a file.
Parameters
- $path
- The full path name of the file to index.
- $fileId
- The file's unique ID.
Returns
mixed A PEAR_Error on error.
|
public
mixed
|
#
referenceFile( string $path, integer $fileId )
References a file.
Parameters
- $path
- The full path name of the file to reference.
- $fileId
- The file's unique ID.
Returns
mixed A PEAR_Error on error.
|
public
|
#
processCode( string $code, mixed $altsources = array() )
Process a chunk of code
Basically, look for anything that looks like a symbol, and if
it is then make it a hyperlink, unless it's a reserved word in this
language.
Parameters
- $code
- Reference to the code to markup.
- $altsources
-
|
Properties summary
public
string
|
$_language
|
|
public
array
|
$_langmap
This language's copy of the 'langmap' hash from the $languages array.
This language's copy of the 'langmap' hash from the $languages array.
|
|