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

关于更新语法后的boolUnit_的处理 #41

Open
idlebo opened this issue Sep 19, 2024 · 2 comments
Open

关于更新语法后的boolUnit_的处理 #41

idlebo opened this issue Sep 19, 2024 · 2 comments

Comments

@idlebo
Copy link
Collaborator

idlebo commented Sep 19, 2024

对于boolUnit_的处理,只需要在yacc中新增boolUnit_的声明(%type BoolUnit_;)并修改yacc中的规则即可,在调用C语言函数构造语法树时将其认为是boolUnit类型(因为boolUnit和boolUnit_包含的信息相同)

@nobodyscool
Copy link

nobodyscool commented Oct 7, 2024

请问一下如何“在调用C语言函数构造语法树时将其认为是boolUnit类型”,make时总会报关于boolUnit_的类型不匹配错误,还需要修改parsec.yacc以外的其他文件吗?//已解决,发现是在yacc定义处,重复定义了boolunit_类型

@idlebo
Copy link
Collaborator Author

idlebo commented Oct 7, 2024

emm,没太懂如果你将其当作boolUnit类型处理的话为什么会报boolUnit_的类型不匹配错误

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

2 participants