Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Em p_compiler #2

Open
alexsilva opened this issue Jun 5, 2013 · 0 comments
Open

Em p_compiler #2

alexsilva opened this issue Jun 5, 2013 · 0 comments

Comments

@alexsilva
Copy link

VERSÃO DO PYTHON:
Python 2.7.1 (r271:86832, Nov 27 2010, 18:30:46) [MSC v.1500 32 bit (Intel)] on win32

Tentar executar o módulo "p_compiler" através da função "main" resulta no seguinte erro:

C:\Python27\python.exe C:/Users/alex/PycharmProjects/ptpy/ptpy/p_compiler.py
WARNING: 'p_ast' not defined as a function
WARNING: 'p_lexer' not defined as a function
ERROR: C:\Users\alex\PycharmProjects\ptpy\ptpy\p_parser.py:262: Symbol 'DEFINE' used, but not defined as a token or a rule
ERROR: C:\Users\alex\PycharmProjects\ptpy\ptpy\p_parser.py:263: Symbol 'DEFINE' used, but not defined as a token or a rule
WARNING: Token 'RETURN' defined, but not used
WARNING: Token 'RAISE' defined, but not used
WARNING: Token 'GLOBAL' defined, but not used
WARNING: Token 'DEL' defined, but not used
WARNING: Token 'PRINT' defined, but not used
WARNING: Token 'DEF' defined, but not used
WARNING: Token 'EXCEPT' defined, but not used
WARNING: Token 'IMPORT' defined, but not used
WARNING: Token 'CLASS' defined, but not used
WARNING: Token 'WS' defined, but not used
WARNING: Token 'TRY' defined, but not used
WARNING: Token 'FINALLY' defined, but not used
WARNING: Token 'FROM' defined, but not used
WARNING: Token 'LAMBDA' defined, but not used
WARNING: There are 14 unused tokens
ERROR: Infinite recursion detected for symbol 'define_stmt'
Traceback (most recent call last):
File "C:/Users/alex/PycharmProjects/ptpy/ptpy/p_compiler.py", line 191, in
main()
File "C:/Users/alex/PycharmProjects/ptpy/ptpy/p_compiler.py", line 176, in main
compiler = PtpyCompiler()
File "C:/Users/alex/PycharmProjects/ptpy/ptpy/p_compiler.py", line 162, in init
self.parser = ptpyparser.PtpyParser()
File "C:\Users\alex\PycharmProjects\ptpy\ptpy\p_parser.py", line 704, in init
self._parser = yacc.yacc()
File "C:\Python27\lib\site-packages\ply\yacc.py", line 3214, in yacc
raise YaccError("Unable to build parser")
ply.yacc.YaccError: Unable to build parser

Process finished with exit code 1

Edit:
Tentar executar o pacote de testes(já fixado), resulta no mesmo erro.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant