XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
Loading...
Searching...
No Matches
EasyLex_SQLScanner Class Reference
Inheritance diagram for EasyLex_SQLScanner:
Legacy_SQLScanner

Public Member Functions

 setBuffer ($buffer)
 
 parse ()
 
 loadFile ($path, $preprocess=true)
 
 _getChrType ($ch)
 
 _parseUnknown ($ch, $type)
 
 _parseDigit ($ch, $type)
 
 _parseLetter ($ch, $type)
 
 _parseStringLiteral ($ch, $type)
 
 _parseStringLiteralEscape ($ch, $type)
 
 _parseOpenParenthesis ($ch, $type)
 
 _parseCloseParenthesis ($ch, $type)
 
 _parseSeparater ($ch, $type)
 
 _parseSemicolon ($ch, $type)
 
 _parseMark ($ch, $type)
 
 _parseComma ($ch, $type)
 
 _createToken ($type=null, $value=null)
 
getOperations ()
 
 getSQL ()
 

Data Fields

 $mTokens = []
 
 $mStatus = EASYLEX_SQL_UNKNOWN
 
 $mBuffer = []
 
 $mIndex = 0
 
 $mActiveToken = ''
 
 $mActiveQuoteMark = null
 

Detailed Description

This is BSD easy lexcal scanner for SQL.

Version
1.00

Definition at line 62 of file EasyLex_SQLScanner.class.php.

Member Function Documentation

◆ _createToken()

_createToken ( $type = null,
$value = null )

Definition at line 308 of file EasyLex_SQLScanner.class.php.

◆ _getChrType()

_getChrType ( $ch)

Definition at line 180 of file EasyLex_SQLScanner.class.php.

◆ _parseCloseParenthesis()

_parseCloseParenthesis ( $ch,
$type )

Definition at line 271 of file EasyLex_SQLScanner.class.php.

◆ _parseComma()

_parseComma ( $ch,
$type )

Definition at line 303 of file EasyLex_SQLScanner.class.php.

◆ _parseDigit()

_parseDigit ( $ch,
$type )

Definition at line 225 of file EasyLex_SQLScanner.class.php.

◆ _parseLetter()

_parseLetter ( $ch,
$type )

Definition at line 239 of file EasyLex_SQLScanner.class.php.

◆ _parseMark()

_parseMark ( $ch,
$type )

Definition at line 293 of file EasyLex_SQLScanner.class.php.

◆ _parseOpenParenthesis()

_parseOpenParenthesis ( $ch,
$type )

Definition at line 266 of file EasyLex_SQLScanner.class.php.

◆ _parseSemicolon()

_parseSemicolon ( $ch,
$type )

Definition at line 288 of file EasyLex_SQLScanner.class.php.

◆ _parseSeparater()

_parseSeparater ( $ch,
$type )

Definition at line 276 of file EasyLex_SQLScanner.class.php.

◆ _parseStringLiteral()

_parseStringLiteral ( $ch,
$type )

Definition at line 249 of file EasyLex_SQLScanner.class.php.

◆ _parseStringLiteralEscape()

_parseStringLiteralEscape ( $ch,
$type )

Definition at line 261 of file EasyLex_SQLScanner.class.php.

◆ _parseUnknown()

_parseUnknown ( $ch,
$type )

Definition at line 213 of file EasyLex_SQLScanner.class.php.

◆ getOperations()

& getOperations ( )

Return Array of operations.

Returns
Array $ret[Index] = Array of tokens.

Reimplemented in Legacy_SQLScanner.

Definition at line 332 of file EasyLex_SQLScanner.class.php.

◆ getSQL()

getSQL ( )

Definition at line 362 of file EasyLex_SQLScanner.class.php.

◆ loadFile()

loadFile ( $path,
$preprocess = true )

Load file and set buffer. If $preprocess is true, scan commetns and remove these.

Parameters
string$pathfile path
bool$preprocess
Returns
bool

Definition at line 155 of file EasyLex_SQLScanner.class.php.

◆ parse()

parse ( )

Definition at line 88 of file EasyLex_SQLScanner.class.php.

◆ setBuffer()

setBuffer ( $buffer)

Definition at line 78 of file EasyLex_SQLScanner.class.php.

Field Documentation

◆ $mActiveQuoteMark

$mActiveQuoteMark = null

Definition at line 76 of file EasyLex_SQLScanner.class.php.

◆ $mActiveToken

$mActiveToken = ''

Definition at line 74 of file EasyLex_SQLScanner.class.php.

◆ $mBuffer

$mBuffer = []

Definition at line 70 of file EasyLex_SQLScanner.class.php.

◆ $mIndex

$mIndex = 0

Definition at line 72 of file EasyLex_SQLScanner.class.php.

◆ $mStatus

$mStatus = EASYLEX_SQL_UNKNOWN

Definition at line 65 of file EasyLex_SQLScanner.class.php.

◆ $mTokens

$mTokens = []

Definition at line 64 of file EasyLex_SQLScanner.class.php.


The documentation for this class was generated from the following file: