[ Index ]

PHP Cross Reference of Limb3

title

Body

[close]

/core/src/ -> lmbPHPTokenizer.class.php (summary)

(no description)

File Size: 188 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

lmbPHPTokenizer:: (6 methods):
  __construct()
  input()
  reset()
  next()
  back()
  line()


Class: lmbPHPTokenizer  - X-Ref

The scanner tokenizes input content ({@link input()})
and provides a "scanner" interface which can go forward
({@link next()}) and backward (({@link back()}) )
along the tokens. It also correlates the toekens with line
number ({@link line()}).

Part of the credits for this scanner is due to phpDocumentor,
from which I borrowed some ideas to make it work.

__construct($input = '')   X-Ref
Constructor

param: string input content

input($input = false)   X-Ref
get input if no param supplied or set input if param is a non-empty string

param: string input content
return: string|bool

reset()   X-Ref
Tokenize input content and reset current
token position and line number

return: void

next()   X-Ref
Fetch the next token

return: string|array token from tokenizer

back()   X-Ref
Go back one token (reverse of {@link next()})

return: false|string|array

line()   X-Ref
Get the current line number

return: integer



Generated: Fri Dec 5 04:05:07 2008 Cross-referenced by PHPXref 0.7