# Path: AXUI/logger/logger.py
# LOGGER = logging.getLogger(logger_config.logger_name)


import ply.lex as lex
import ply.yacc as yacc
from AXUI.logger import LOGGER
def p_tuple(p):
    "tuple : LPAREN members RPAREN"
    p[0] = tuple(p[2])
    
def p_members_1(p):
    "members : member"
    p[0] = [p[1]]
    
def p_members_2(p):
    "members : members COMMA member"
    p[0] = p[1]
    p[0].append(p[3])
    
def p_member(p):
    '''member : number
              | string
              | BOOL
              | list
              | tuple'''
    p[0] = p[1]

def p_string(p):
    "string : STRING"
    p[0] = p[1].strip("\"").strip("\'")
    
def p_number(p):
    "number : NUMBER"
    p[0] = int(p[1])
              
def p_error(p):

# Path: AXUI/logger/logger.py
# LOGGER = logging.getLogger(logger_config.logger_name)


# Path: AXUI/parsing/gui_command_parsing.py
import ply.lex as lex
import ply.yacc as yacc
from AXUI.logger import LOGGER

def p_tuple(p):
    "tuple : LPAREN members RPAREN"
    p[0] = tuple(p[2])
    
def p_members_1(p):
    "members : member"
    p[0] = [p[1]]
    
def p_members_2(p):
    "members : members COMMA member"
    p[0] = p[1]
    p[0].append(p[3])
    
def p_member(p):
    '''member : number
              | string
              | BOOL
              | list
              | tuple'''
    p[0] = p[1]

def p_string(p):
    "string : STRING"
    p[0] = p[1].strip("\"").strip("\'")
    
def p_number(p):
    "number : NUMBER"
    p[0] = int(p[1])
              
def p_error(p):

    LOGGER.debug("Syntax error in input: %s, Ln: %d" , repr(p.value), p.lineno)