Modified the print statement of successful and unsuccessful parsings to avoid using utf
This commit is contained in:
parent
b5614d17d4
commit
9f059e9949
1 changed files with 2 additions and 2 deletions
|
|
@ -114,7 +114,7 @@ def p_programa(p):
|
|||
'''
|
||||
programa : program id V F B end program
|
||||
'''
|
||||
print('✓✓✓ Valid program')
|
||||
print('+++ Valid program')
|
||||
|
||||
def p_V(p):
|
||||
'''
|
||||
|
|
@ -286,7 +286,7 @@ def p_EQSymbols(p):
|
|||
'''
|
||||
|
||||
def p_error(p):
|
||||
print('xxx Invalid program')
|
||||
print('XXX Invalid program')
|
||||
print(p)
|
||||
|
||||
parser = yacc.yacc()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue