Snapdragon
Grow your team on GitHub
GitHub is home to over 50 million developers working together. Join them to grow your own development teams, manage permissions, and collaborate on projects.
Sign upRepositories
-
snapdragon
snapdragon is an extremely pluggable, powerful and easy-to-use parser-renderer factory.
-
snapdragon-parser
Easily parse a string to create an AST.
-
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-scanner
Easily scan a string with an object of regex patterns to produce an array of tokens. ~100 sloc.
-
snapdragon-token
Create a snapdragon token. Used by the snapdragon lexer, but can also be used by plugins.
-
snapdragon-util
Utilities for the snapdragon parser/compiler.
-
snapdragon-stack
Snapdragon utility for creating a stack.
-
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-handlers
Adds support for handlers, events and plugins to snapdragon libraries.
-
-
snapdragon-visit
visit and mapVisit methods for snapdragon nodes.
-
snapdragon-cheerio
Snapdragon plugin for converting a cheerio AST to a snapdragon AST.
-
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-bracket
Plugin that adds a `.captureSet()` method to snapdragon, for matching and capturing substrings that have an `open` and `close`, like braces, brackets, etc

