Coder Social home page Coder Social logo

parsec.el's People

Contributors

cute-jumper avatar franburstall avatar jtimmons avatar ljos avatar tarsius avatar xuchunyang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

parsec.el's Issues

Fix documentation of parsec-query

parsec-query is a Lisp macro in ‘parsec.el’.

(parsec-query PARSER &rest ARGS)

Get an alternative return value of the PARSER specified by the ARGS.

The args can be in the following forms:

    :beg      --> return the point before applying the PARSER
    :end      --> return the point after applying the PARSER
    :nil      --> return nil
    :groups N --> return Nth group for ‘parsec-re’.

As far as I can see only 1 argument makes sense in the ARGS position,
and will be used. Given the documentation I expected all of the args to
be used e.g.
(cl-query (xxx...) :beg :end) would return :beg and :end but only :beg
is returned.

parsec-many returns an error instead of the list of successfully-parsed elements

Here's a much-simplified testcase:

(defun test/some-spaces ()
  (parsec-many (parsec-ch ?\s)))

(defun test/blank-line ()
  (parsec-optional (test/some-spaces))
  (parsec-newline))

(parsec-with-input "
  

  last line
"
  (parsec-many (test/blank-line)))

This should return a list of three strings, each containing a newline character, but instead it returns parsec-newline's error when it sees the l.

Parsec fails when using it from an installed package

Hi!

I get (invalid-function parsec-and) from parsec-try.
Got it down to the fact that code gets compiled, but there's more to be uncovered, I think.
The attached file demonstrates the problem.
I can convert it to an ert test if you want me to, although there will be an additional function.

For the moment I work around the packaging problem by adding
;; -*-no-byte-compile: t; -*-
to the file doing the parsing.

dpcp.txt

Bye,
Kero.

Please consider making a new release

The latest released version, 0.1.3, dates from 2016. Please consider tagging a newer version so that the latest fixes show up in, e.g., MELPA Stable.

Thanks.

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.