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

ktn_dodger can't parse macros in specs #38

Closed
elbrujohalcon opened this issue Dec 30, 2019 · 1 comment
Closed

ktn_dodger can't parse macros in specs #38

elbrujohalcon opened this issue Dec 30, 2019 · 1 comment
Labels
bug hacktoberfest Nice thing to work on for Hacktoberfest

Comments

@elbrujohalcon
Copy link
Member

elbrujohalcon commented Dec 30, 2019

When trying to parse this code…

-spec ?MODULE:f(?PAIR(r0(), r0())) -> ?PAIR(t(), t()).
-spec ?MODULE:b() -> ?BOMBA | fun().

ktn_dodger generates an AST that can be pretty-printed as…

-spec (?MODULE):f('?<macro> ('(PAIR, r0(), r0())) -> '?<macro> ('(PAIR, t(), t()).
-spec (?MODULE):b() -> '?BOMBA' | fun().

…which is clearly not compatible with the original code.

@elbrujohalcon elbrujohalcon changed the title ktn_dodger can't parse undefined parameterized macros in specs ktn_dodger can't parse parameterized macros in specs Dec 30, 2019
@elbrujohalcon elbrujohalcon changed the title ktn_dodger can't parse parameterized macros in specs ktn_dodger can't parse macros in specs Dec 30, 2019
@elbrujohalcon elbrujohalcon added the hacktoberfest Nice thing to work on for Hacktoberfest label Aug 28, 2020
@elbrujohalcon
Copy link
Member Author

No longer an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug hacktoberfest Nice thing to work on for Hacktoberfest
Projects
None yet
Development

No branches or pull requests

1 participant