Git Product home page Git Product logo

Comments (3)

wdebeaum avatar wdebeaum commented on August 19, 2024

I wasn't able to reproduce this on julia-0.6.0 on Linux; I copied and pasted your code into the REPL, and the last line returned "あaaa", not an error. I even tried it again with LC_ALL=C and LANG=C, with the same result. Can you give me more detail about your setup, and what test you did to justify saying "Julia's pcre is not broken in this case"?

from peg.jl.

tani avatar tani commented on August 19, 2024

Thanks for reply. My environment is the following.

julia> versioninfo()
Julia Version 0.6.2
Commit d386e40c17 (2017-12-13 18:08 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin14.5.0)
  CPU: Intel(R) Core(TM) i5-5350U CPU @ 1.80GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.9.1 (ORCJIT, broadwell)

To get that error, please just run LANG=C LC_ALL=C julia test.jl and test.jl is that snippet.

using PEG
@rule s = r".+"
parse_whole(s, "あaaa")

and what test you did to justify saying "Julia's pcre is not broken in this case"?

I ran this code.

julia> match(r".+", "あaaa")
RegexMatch("あaaa")

from peg.jl.

tani avatar tani commented on August 19, 2024

This issue has been solved by removing '~/.julia'. It seems that some old packages has affected PEG.jl . I'm sorry I could not detected these packages.

from peg.jl.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.