예제 #1
0
def if_statement():         return '{', keyword('if'), -1, left_paren, expression, -1, right_paren, -1, (operator, -1, left_paren, expression, -1, right_paren), '}', -1, smarty_language, -1, [else_statement, elseif_statement], '{/', keyword('if'), '}'

def for_statement():        return '{', keyword('foreach'), -1, [for_from, for_item, for_name, for_key], '}', -1, smarty_language, 0, foreachelse_statement, '{/', keyword('foreach'), '}'
예제 #2
0
def for_statement():        return '{', keyword('foreach'), -1, [for_from, for_item, for_name, for_key], '}', -1, smarty_language, 0, foreachelse_statement, '{/', keyword('foreach'), '}'

"""
예제 #3
0
def for_key():              return junk, keyword('key'), '=', 0, ['"', '\''], symbol, 0, ['"', '\''], junk

def elseif_statement():     return '{', keyword('elseif'), -1, left_paren, expression, -1, right_paren, -1, (operator, -1, left_paren, expression, -1, right_paren), '}', -1, smarty_language
예제 #4
0
def elseif_statement():     return '{', keyword('elseif'), -1, left_paren, expression, -1, right_paren, -1, (operator, -1, left_paren, expression, -1, right_paren), '}', -1, smarty_language

def if_statement():         return '{', keyword('if'), -1, left_paren, expression, -1, right_paren, -1, (operator, -1, left_paren, expression, -1, right_paren), '}', -1, smarty_language, -1, [else_statement, elseif_statement], '{/', keyword('if'), '}'
예제 #5
0
def else_statement():       return '{', keyword('else'), '}', -1, smarty_language

def foreachelse_statement():return '{', keyword('foreachelse'), '}', -1, smarty_language
예제 #6
0
def foreachelse_statement():return '{', keyword('foreachelse'), '}', ANY_NUMBER_OF, smarty_language

def print_statement():      return '{', OPTIONALLY, 'e ', expression, '}'
예제 #7
0
def for_statement():        return '{', keyword('foreach'), ANY_NUMBER_OF, [for_from, for_item, for_name, for_key], '}', ANY_NUMBER_OF, smarty_language, OPTIONALLY, foreachelse_statement, '{/', keyword('foreach'), '}'

"""
예제 #8
0
def equals_operator():      return ['==', keyword('eq')]

def ne_operator():          return ['!=', keyword('ne'), keyword('neq')]
예제 #9
0
def elseif_statement():     return '{', keyword('elseif'), ANY_NUMBER_OF, left_paren, expression, ANY_NUMBER_OF, right_paren, ANY_NUMBER_OF, (operator, ANY_NUMBER_OF, left_paren, expression, ANY_NUMBER_OF, right_paren), '}', ANY_NUMBER_OF, smarty_language

def if_statement():         return '{', whitespace, keyword('if'), ANY_NUMBER_OF, left_paren, expression, ANY_NUMBER_OF, right_paren, ANY_NUMBER_OF, (operator, ANY_NUMBER_OF, left_paren, expression, ANY_NUMBER_OF, right_paren), whitespace, '}', ANY_NUMBER_OF, smarty_language, ANY_NUMBER_OF, [else_statement, elseif_statement], '{/', keyword('if'), '}'
예제 #10
0
def if_statement():         return '{', whitespace, keyword('if'), ANY_NUMBER_OF, left_paren, expression, ANY_NUMBER_OF, right_paren, ANY_NUMBER_OF, (operator, ANY_NUMBER_OF, left_paren, expression, ANY_NUMBER_OF, right_paren), whitespace, '}', ANY_NUMBER_OF, smarty_language, ANY_NUMBER_OF, [else_statement, elseif_statement], '{/', keyword('if'), '}'

def for_statement():        return '{', keyword('foreach'), ANY_NUMBER_OF, [for_from, for_item, for_name, for_key], '}', ANY_NUMBER_OF, smarty_language, OPTIONALLY, foreachelse_statement, '{/', keyword('foreach'), '}'
예제 #11
0
def for_key():              return whitespace, keyword('key'), '=', OPTIONALLY, ['"', '\''], symbol, OPTIONALLY, ['"', '\''], whitespace

def elseif_statement():     return '{', keyword('elseif'), ANY_NUMBER_OF, left_paren, expression, ANY_NUMBER_OF, right_paren, ANY_NUMBER_OF, (operator, ANY_NUMBER_OF, left_paren, expression, ANY_NUMBER_OF, right_paren), '}', ANY_NUMBER_OF, smarty_language
예제 #12
0
def for_name():             return whitespace, keyword('name'), '=', OPTIONALLY, ['"', '\''], symbol, OPTIONALLY, ['"', '\''], whitespace

def for_key():              return whitespace, keyword('key'), '=', OPTIONALLY, ['"', '\''], symbol, OPTIONALLY, ['"', '\''], whitespace
예제 #13
0
def for_from():             return whitespace, keyword('from'), '=', OPTIONALLY, ['"', '\''], expression, OPTIONALLY, ['"', '\''], whitespace

def for_item():             return whitespace, keyword('item'), '=', OPTIONALLY, ['"', '\''], symbol, OPTIONALLY, ['"', '\''], whitespace
예제 #14
0
def and_operator():         return [keyword('and'), '&&']

def or_operator():          return [keyword('or'), '||']
예제 #15
0
def for_from():             return junk, keyword('from'), '=', 0, ['"', '\''], expression, 0, ['"', '\''], junk

def for_item():             return junk, keyword('item'), '=', 0, ['"', '\''], symbol, 0, ['"', '\''], junk
예제 #16
0
def or_operator():          return [keyword('or'), '||']

def equals_operator():      return ['==', keyword('eq')]
예제 #17
0
def for_item():             return junk, keyword('item'), '=', 0, ['"', '\''], symbol, 0, ['"', '\''], junk

def for_name():             return junk, keyword('name'), '=', 0, ['"', '\''], symbol, 0, ['"', '\''], junk
예제 #18
0
def ne_operator():          return ['!=', keyword('ne'), keyword('neq')]

def gt_operator():          return ['>', 'gt']
예제 #19
0
def for_name():             return junk, keyword('name'), '=', 0, ['"', '\''], symbol, 0, ['"', '\''], junk

def for_key():              return junk, keyword('key'), '=', 0, ['"', '\''], symbol, 0, ['"', '\''], junk
예제 #20
0
def foreachelse_statement():return '{', keyword('foreachelse'), '}', -1, smarty_language

def print_statement():      return '{', 0, 'e ', expression, '}'
예제 #21
0
def else_statement():       return '{', keyword('else'), '}', ANY_NUMBER_OF, smarty_language

def foreachelse_statement():return '{', keyword('foreachelse'), '}', ANY_NUMBER_OF, smarty_language