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

Is this long columns of ints expected behaviour on the example? #161

Closed
step21 opened this issue Aug 29, 2020 · 3 comments
Closed

Is this long columns of ints expected behaviour on the example? #161

step21 opened this issue Aug 29, 2020 · 3 comments
Labels
faq User question output formatting Conerning the layout of the generated files

Comments

@step21
Copy link

step21 commented Aug 29, 2020

I am just playing around with haskell and alex. When running the example from the docs, the resulting .hs file has superfluous whitespace like a snowy mountain and long columns of integers, why? Is it some kind of test? In the closest comment it says 'GScan wrapper', whatever that means.
Maybe I just do not know enough haskell, but any insight would be great. Google and docs didn't help so far.

@andreasabel
Copy link
Member

has superfluous whitespace like a snowy mountain

I suppose no one cared to make the output look nice, since it is only for consumption by the Haskell compiler.

long columns of integers

If I am not mistaken, these integers represent the transition table of the generated automaton.

@step21
Copy link
Author

step21 commented Oct 9, 2020

Thanks for clarifying, that makes sense. However I thought that as it is supposed to be usable for lexer/parser generation, I actually need to know what it is doing.

@andreasabel andreasabel added faq User question output formatting Conerning the layout of the generated files labels Jan 25, 2022
@andreasabel
Copy link
Member

Content of this issue duplicates #84 and #105.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
faq User question output formatting Conerning the layout of the generated files
Projects
None yet
Development

No branches or pull requests

2 participants