# encoding: utf-8
'''
PingPHP lexer
'''

from ply import lex

reserved = set([
    # namespace
    'namespace', 'use', 'as', 'insteadof',
    # class and interface
    'class', 'extends', 'implements',
    'public', 'private', 'protected',
    'static', 'abstract', 'final',
    'interface', 'trait',

    # ctrl flow
    'if', 'elif', 'else',
    'for', 'in',
    'switch', 'case', 'default',
    'while', 'do',
    'declare',