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

parallel parsing mishandles repeated includes #22

Open
sorear opened this issue Jul 3, 2016 · 0 comments
Open

parallel parsing mishandles repeated includes #22

sorear opened this issue Jul 3, 2016 · 0 comments

Comments

@sorear
Copy link
Owner

sorear commented Jul 3, 2016

$$ target/release/smetamath --text A '$[ B $] $[ C $]' \
    --text B '$[ C $] $c X $.' --text C '$c X $.'
C:3-4:Error:This symbol is already active in this scope
B:11-12:Note:Symbol was previously declared here

A starts by including B which starts by including C, so C's version of X should be the logically first one, but smetamath3 gets confused during readahead and decides that the "real" include of C is the one in A, messing up the order. The included check in read_and_parse is misplaced, not sure right now where it belongs.

sorear added a commit that referenced this issue Jul 3, 2016
in which segment_set gets algorithm comments, and in the process of trying to explain what's going on I discovered #22
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