- Notifications
You must be signed in to change notification settings - Fork1
Generate an AST of a BBCode fragment.
License
PythonCoderAS/bbcode-ast
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Generates an Abstract Syntax Tree (AST) from a chunk of BBCode.
Read full and updated documentation:https://pythoncoderas.github.io/bbcode-ast/
npm install --save bbcode-ast
Load the library fromhttps://cdn.jsdelivr.net/npm/bbcode-ast@2/dist/bundle.min.js.
This will add abbcode_ast variable to thewindow global. The default parser can be accessed throughbbcode_ast.default.
You can either use the default parser or construct your own parser. Once you have aParser, call theparse method onit. The default parser can be imported.
It will return the root node of the AST.
You can navigate through the tree by accessing thechildren attribute of the root node and recursively inspectingthechildren of child nodes.
About
Generate an AST of a BBCode fragment.
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.