Snapdragon's repositories
snapdragon
snapdragon is an extremely pluggable, powerful and easy-to-use parser-renderer factory.
snapdragon-node
Snapdragon utility for creating a new AST node in custom code, such as plugins.
snapdragon-lexer
Converts a string into an array of tokens, with useful methods for looking ahead and behind, capturing, matching, et cetera.
snapdragon-util
Utilities for the snapdragon parser/compiler.
snapdragon-scanner
Easily scan a string with an object of regex patterns to produce an array of tokens. ~100 sloc.
snapdragon-handlers
Adds support for handlers, events and plugins to snapdragon libraries.
snapdragon-parser
Easily parse a string to create an AST.
snapdragon-stack
Snapdragon utility for creating a stack.
snapdragon-cheerio
Snapdragon plugin for converting a cheerio AST to a snapdragon AST.
snapdragon-bracket
Plugin that adds a `.captureSet()` method to snapdragon, for matching and capturing substrings that have an `open` and `close`, like braces, brackets, etc
snapdragon-capture
Snapdragon plugin that adds a capture method to the parser instance, which allows you to capture tokens with a single line of code
snapdragon-is-inside
Snapdragon plugin that adds an `isInside` method to the compiler instance for checking if a node is currently inside a given node type.
snapdragon-location
Adds a location object to snapdragon token or AST node.
snapdragon-position
Snapdragon util and plugin for patching the position on an AST node.
snapdragon-token
Create a snapdragon token. Used by the snapdragon lexer, but can also be used by plugins.
snapdragon-visit
visit and mapVisit methods for snapdragon nodes.