You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and use ReadFile to read Parser.v in the cparser folder, and then use (Query () (Ast x)) to get the ASTs of its sentences one by one, the SerAPI process will freeze at a point, and Ctrl+C cannot end the process. This could result from the fact that Parser.v has more than 34,000 lines of code. However, could you fix this issue? Since coqc has no problem compiling the file.
The text was updated successfully, but these errors were encountered:
Hi! Now I think there is nothing wrong with SerAPI, and instead my Python code is faulty, as explained in the coq issue. Sorry about it. This is extremely strange though, since my python code works perfectly for all other files in CompCert and VST, and it only freezes in the cparser/Parser.v when calling the SerAPI AST queries.
Oh, don't discard a bug in Coq. This stuff is tricky, also SerAPI relies on terminal if you open it directly and that has some known limitations on the size of the input.
I'd love to have a native Python interface for SerAPI, but I am not sure how to proceed. Opening an issue anyways #48
Version
Coq 8.7.1, CompCert 3.2
Operating system
macOS 10.13.3
The problem
If you use
and use
ReadFile
to readParser.v
in thecparser
folder, and then use(Query () (Ast x))
to get the ASTs of its sentences one by one, the SerAPI process will freeze at a point, andCtrl+C
cannot end the process. This could result from the fact thatParser.v
has more than 34,000 lines of code. However, could you fix this issue? Sincecoqc
has no problem compiling the file.The text was updated successfully, but these errors were encountered: