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