We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I created a project using the mix new project and add the dependency in mix.exs, I found this example in documentation
mix new project
mix.exs
defmodule MyParser do import NimbleParsec defparsec integer(min: 1) |> tag(:integer) end MyParser.integer("1234")
when I run this example from project directory using the iex -S mix I got this error message ** (CompileError) iex:12: undefined function defparsec/1
iex -S mix
** (CompileError) iex:12: undefined function defparsec/1
Elixir 1.9.1 NimbleParser 0.5.1
The text was updated successfully, but these errors were encountered:
there's no defparsec/1 but there's defparsec/2,3; you need to give a name to your parsec:
defparsec/1
defparsec/2,3
defparsec :my_int, integer(min: 1) |> tag(:integer)
Sorry, something went wrong.
Oh, the documentation is wrong indeed in a couple places, I'll fix it up. Thanks for the report!
Fix docs snippets, ref #63
2f083d6
No branches or pull requests
I created a project using the
mix new project
and add the dependency inmix.exs
, I found this example in documentationwhen I run this example from project directory using the
iex -S mix
I got this error message** (CompileError) iex:12: undefined function defparsec/1
Elixir 1.9.1
NimbleParser 0.5.1
The text was updated successfully, but these errors were encountered: