Skip to content
Ioan CHIRIAC edited this page Feb 18, 2015 · 3 revisions

This parser looks a token ahead, and each function MUST consume his token.

Main functions are :

expect

checks the current token and raise an error if not match

next

eat current token and goes to the next

text

reads token contents (when the token is a T_STRING for example)

read_list

reads a list of tokens separated with a token

Clone this wiki locally