pearley | new implementation of the Earley parsing algorithm | Parser library

 by   purag JavaScript Version: Current License: GPL-2.0

kandi X-RAY | pearley Summary

kandi X-RAY | pearley Summary

pearley is a JavaScript library typically used in Utilities, Parser applications. pearley has no bugs, it has no vulnerabilities, it has a Strong Copyleft License and it has low support. You can download it from GitHub.

Pearley is a shiny new implementation of the Earley parsing algorithm in Javascript. Pearley can parse any context-free grammar, including left-recursive, right-recursive, and ambiguous grammars, and grammars containing epsilon rules (the null/empty rule). This demo shows how Pearley can parse math expressions with the +, -, *, and / operators, parentheses, and numbers of arbitrary length. To run it, you must include tokenizer.js from my ParserGen repo to tokenize the strings. You can also click the link to see the demo on jsFiddle. Check the console for output. First line of output is the tokenized string, second line of output is the list of tokens parsed by Pearley, and the last line of output is the table of state sets. This demo lets you parse a string containing balanced pairs of parentheses, meaning n open parentheses followed by n close parentheses.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              pearley has a low active ecosystem.
              It has 5 star(s) with 2 fork(s). There are 4 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              pearley has no issues reported. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of pearley is current.

            kandi-Quality Quality

              pearley has no bugs reported.

            kandi-Security Security

              pearley has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              pearley is licensed under the GPL-2.0 License. This license is Strong Copyleft.
              Strong Copyleft licenses enforce sharing, and you can use them when creating open source projects.

            kandi-Reuse Reuse

              pearley releases are not available. You will need to build from source code and install.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of pearley
            Get all kandi verified functions for this library.

            pearley Key Features

            No Key Features are available at this moment for pearley.

            pearley Examples and Code Snippets

            No Code Snippets are available at this moment for pearley.

            Community Discussions

            QUESTION

            Dropdown menu with result js
            Asked 2020-Oct-26 at 17:12

            I am writing a search menu that searches for and shows on the page all matching substrings in a string on pure js. I made the search on page, but I don't know how to display the results in the search drop-down menu with the number of results like on picture use only js. My code and picture below:

            ...

            ANSWER

            Answered 2020-Oct-26 at 10:28

            QUESTION

            Search result in dropdown menu on pure js
            Asked 2020-Oct-26 at 15:12

            Continuation of my question. There is a search block, a string is searched among the "p" blocks on the page, the number of blocks is displayed.
            I cannot make it so that the blocks that contain the search string are reflected in the drop-down list as in the picture.
            Question:
            how to make a drop-down list with "p" blocks that contain the desired string in pure js.

            An example in the picture, the available code below:

            ...

            ANSWER

            Answered 2020-Oct-26 at 15:12

            Inside the p loop, you can check if each p content contains the inputed text using String.prototype.match and if no matches, update the style to hide the p tag as follows.

            Source https://stackoverflow.com/questions/64538355

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install pearley

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/purag/pearley.git

          • CLI

            gh repo clone purag/pearley

          • sshUrl

            git@github.com:purag/pearley.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Parser Libraries

            marked

            by markedjs

            swc

            by swc-project

            es6tutorial

            by ruanyf

            PHP-Parser

            by nikic

            Try Top Libraries by purag

            archsim

            by puragJavaScript

            gcc.js

            by puragJavaScript

            .files

            by puragShell

            PearleyParser

            by puragJavaScript

            concur

            by puragJavaScript