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

NameError: name 'ret_expr' is not defined #157

Open
amolkhanna opened this issue Mar 30, 2020 · 5 comments
Open

NameError: name 'ret_expr' is not defined #157

amolkhanna opened this issue Mar 30, 2020 · 5 comments

Comments

@amolkhanna
Copy link

When using SMOP to translate a .m file, I repeatedly run into the following error:

Traceback:
Line 61, in main.py: stmt_list = parse.parse(buf if buf[-1] == '\n' else buf + '\n')
Line 849, in parse.py: p = parser.parse(
Line 331, in parse.py: return self.parseopt(input, lexer, debug, tracking, tokenfunc)
Line 823, in parseopt.py: p.callable(pslice)
Line 696, in p_return_stmt: p[0] = node.return_stmt(ret=ret_expr)
NameError: name 'ret_expr' is not defined.

Could someone please tell me why this error occurs, and if there is a way to fix it? Thanks.

@Hedilict
Copy link

Hi, same error occurs. Have you ever solve this one?

@Hedilict
Copy link

When using SMOP to translate a .m file, I repeatedly run into the following error:

Traceback:
Line 61, in main.py: stmt_list = parse.parse(buf if buf[-1] == '\n' else buf + '\n')
Line 849, in parse.py: p = parser.parse(
Line 331, in parse.py: return self.parseopt(input, lexer, debug, tracking, tokenfunc)
Line 823, in parseopt.py: p.callable(pslice)
Line 696, in p_return_stmt: p[0] = node.return_stmt(ret=ret_expr)
NameError: name 'ret_expr' is not defined.

Could someone please tell me why this error occurs, and if there is a way to fix it? Thanks.
Hi, same error occurs. Have you ever solve this one?

@vencerk
Copy link

vencerk commented Jun 16, 2021

= =same error。。

@hedi-sel
Copy link

Same problem

@Nomel28
Copy link

Nomel28 commented Nov 3, 2022

Same problems, has this been resolved yet?

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

5 participants