swadey / LispSyntax.jl

lisp-like syntax in julia
Other
231 stars 24 forks source link

MethodError: |(::Pattern, ::SubstitutionString{ASCIIString}) #2

Closed Ismael-VC closed 8 years ago

Ismael-VC commented 8 years ago
               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.4.2 (2015-12-06 21:47 UTC)
 _/ |\__'_|_|_|\__'_|  |  Official http://julialang.org/ release
|__/                   |  x86_64-w64-mingw32

julia> using Lisp
ERROR: LoadError: LoadError: MethodError: `|` has no method matching |(::ParserCombinator.Pattern, ::Base.SubstitutionString{ASCIIString})
Closest candidates are:
  |(::Any, ::Any, ::Any, ::Any...)
  |(::ParserCombinator.Matcher, ::ParserCombinator.Alt)
  |(::ParserCombinator.Matcher, ::ParserCombinator.Matcher)
 in include at boot.jl:261
 in include_from_node1 at loading.jl:304
 in include at boot.jl:261
 in include_from_node1 at loading.jl:304
 in require at loading.jl:243
while loading C:\Users\Peter\.julia\v0.4\Lisp\src\parser.jl, in expression starting on line 9
while loading C:\Users\Peter\.julia\v0.4\Lisp\src\Lisp.jl, in expression starting on line 2

julia>
Ismael-VC commented 8 years ago

This is the line: https://github.com/swadey/Lisp.jl/blob/master/src/parser.jl#L9

swadey commented 8 years ago

This was due to a change in ParserCombinator's API. Should be fixed now. I also updated everything to support 0.4 and higher.

Ismael-VC commented 8 years ago

Thank you very much!