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

Build fails with Crystal 1.7.2 #3

Open
binarytemple opened this issue Feb 16, 2023 · 1 comment
Open

Build fails with Crystal 1.7.2 #3

binarytemple opened this issue Feb 16, 2023 · 1 comment

Comments

@binarytemple
Copy link

~/repos/bt/EBNF.cr/ asdf which crystal                  /Users/b/.asdf/installs/crystal/1.7.2/bin/crystal
~/repos/bt/EBNF.cr/ asdf which shards 
/Users/b/.asdf/installs/crystal/1.7.2/embedded/bin/shards
~/repos/bt/EBNF.cr/ shards build --release --production
Dependencies are satisfied
Building: ebnf
Error target ebnf failed to compile:
Showing last frame. Use --error-trace for full trace.

In src/ebnf/grammar/rule.cr:89:48

 89 | def initialize(@atoms = Array(Atom).new, @action = nil)
                                               ^
Error: instance variable @action of EBNF::Bison::Rule was inferred to be Nil, but Nil alone provides no information
@binarytemple
Copy link
Author

It worked with Crystal 0.33.
I'm trying to get it to parse the Postgres Bison Grammar - https://github.com/postgres/postgres/blob/master/src/backend/parser/gram.y
My goal is to automate the conversion of the postgres grammar into a intermediate format from whence I can create an (Erlang) Yecc grammar.
Any general advice welcomed as well, maybe I'm taking the wrong approach.

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