chevrotain | Parser Building Toolkit for JavaScript | Parser library
kandi X-RAY | chevrotain Summary
kandi X-RAY | chevrotain Summary
Chevrotain is a blazing fast and feature rich Parser Building Toolkit for JavaScript. It can be used to build parsers/compilers/interpreters for various use cases ranging from simple configuration files, to full-fledged programing languages. A more in depth description of Chevrotain can be found in this great article on: Parsing in JavaScript: Tools and Libraries. It is important to note that Chevrotain is NOT a parser generator. It solves the same kind of problems as a parser generator, just without any code generation. Chevrotain Grammars are pure code which can be created/debugged/edited as any other pure code without requiring any new tools or processes.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of chevrotain
chevrotain Key Features
chevrotain Examples and Code Snippets
const chevrotain = require('chevrotain')
const LD = require('lexdoc')(chevrotain)
const JsonLexer = LD.build({
WhiteSpace: {
pattern: /[ \t\n\r]+/,
group: LD.SKIPPED,
line_breaks: true
},
NumberLiteral: /-?(0|[1-9]\d*)(\.\d+)?([eE
Community Discussions
Trending Discussions on chevrotain
QUESTION
Case of use:
Dependencias: I want to create a library for angular 6, this library consists of a service with logic to analyze string (for example SQL syntax)
Questions:
- I want to know, if at the moment of creating my library in angular, I can make use of [chevrotain] (https://github.com/SAP/chevrotain) inside my library
- If the number 2 is correct, what problems can I face in the future?
- In case of not hitting number 1 and 2, what alternatives do I have to be able to use [chevrotain] (https://github.com/SAP/chevrotain) in my new library?
I appreciate any kind of answers
...ANSWER
Answered 2019-Apr-23 at 23:37Yep, you can, by add a dependency in your libraries package.json to chevrotain. When someone installs your library, it will automatically install chevrotain.
Initially you may have thought to use peerDependencies, but in this case it should be a dependency as your package won't run without it. See also this post that explains it in a bit more detail.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install chevrotain
Browser: The npm package contains Chevrotain as concatenated and minified files ready for use in a browser. These can also be accessed directly via UNPKG in a script tag. Latest: https://unpkg.com/chevrotain/lib/chevrotain.js https://unpkg.com/chevrotain/lib/chevrotain.min.js https://unpkg.com/chevrotain/lib_esm/chevrotain.mjs https://unpkg.com/chevrotain/lib_esm/chevrotain.min.mjs Explicit version number: https://unpkg.com/chevrotain@10.1.1/lib/chevrotain.js https://unpkg.com/chevrotain@10.1.1/lib/chevrotain.min.js https://unpkg.com/chevrotain@10.1.1/lib_esm/chevrotain.mjs https://unpkg.com/chevrotain@10.1.1/lib_esm/chevrotain.min.mjs
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page