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

parser descends all includes before parsing any code #21

Open
Telcrome opened this issue Dec 3, 2019 · 0 comments
Open

parser descends all includes before parsing any code #21

Telcrome opened this issue Dec 3, 2019 · 0 comments
Assignees
Labels
bug Something isn't working parser

Comments

@Telcrome
Copy link

Telcrome commented Dec 3, 2019

Consider two files:

symboldefinition.gpp:
symbol domain Animals = { TIGER, ELEPHANT }

main.gpp:

#include "symboldefinition.gpp"

action feed_animal(symbol animal) {
  domain animal in Animal // <<<< problematic with outside defined domains
  [...]
}

Will add a tested example and edit the issue next tuesday. Also the output might be interesting, because the error message did not immediately help us find the problem.

@vmatare vmatare added the bug Something isn't working label Dec 17, 2019
@vmatare vmatare self-assigned this Dec 17, 2019
@vmatare vmatare added the parser label Jan 14, 2020
@vmatare vmatare closed this as completed Dec 10, 2020
@vmatare vmatare reopened this Dec 10, 2020
@vmatare vmatare changed the title Using included domain outside the defining file does not work parser descends all includes before parsing any code Dec 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working parser
Projects
None yet
Development

No branches or pull requests

2 participants