snapdragon
Easy-to-use plugin system for creating powerful, fast and versatile parsers and compilers, with built-in source-map support.
Easy-to-use plugin system for creating powerful, fast and versatile parsers and compilers, with built-in source-map support.
Utilities for the snapdragon parser/compiler.
Class for creating AST nodes.
Converts a string into an array of tokens, with useful methods for looking ahead and behind, capturing, matching, et cetera.
Easily parse a string to create an AST.
Snapdragon plugin that adds a capture method to the parser instance.
Snapdragon plugin for converting a cheerio AST to a snapdragon AST.
Plugin that adds a `.captureSet()` method to snapdragon, for matching and capturing substrings that have an `open` and `close`, like braces, brackets, etc
Adds support for handlers, events and plugins to snapdragon libraries.
Snapdragon utility for creating a stack.
Create a snapdragon token. Used by the snapdragon lexer, but can also be used by plugins.
visit and mapVisit methods for snapdragon nodes.
Snapdragon plugin that adds an `isInside` method to the compiler instance for checking if a node is currently inside a given node type.
Adds a location object to snapdragon token or AST node.
Snapdragon util and plugin for patching the position on an AST node.
Easily scan a string with an object of regex patterns to produce an array of tokens. ~100 sloc.
Easy-to-use plugin system for creating powerful, fast and versatile parsers and compilers, with built-in source-map support.
Scaffold out a new snapdragon plugin project.