-
- Downloads
Replace handling of Puppet code.
Previously the the input json was directly mapped into the output strings, through different formatters. This changes it so we instead first build a proper AST of python objects, which is later mapped to output strings (still through formatters). This gives us much better type information, and will give way to much more advanced formatters in the future. This includes some regressions: * Docstrings aren't handled as well * The code lacks any form of hyperlinks.
Showing
- muppet/data/__init__.py 0 additions, 202 deletionsmuppet/data/__init__.py
- muppet/data/html.py 0 additions, 95 deletionsmuppet/data/html.py
- muppet/data/plain.py 0 additions, 50 deletionsmuppet/data/plain.py
- muppet/format.py 28 additions, 1009 deletionsmuppet/format.py
- muppet/puppet/__main__.py 72 additions, 0 deletionsmuppet/puppet/__main__.py
- muppet/puppet/ast.py 724 additions, 0 deletionsmuppet/puppet/ast.py
- muppet/puppet/format/__init__.py 13 additions, 0 deletionsmuppet/puppet/format/__init__.py
- muppet/puppet/format/base.py 296 additions, 0 deletionsmuppet/puppet/format/base.py
- muppet/puppet/format/html.py 549 additions, 0 deletionsmuppet/puppet/format/html.py
- muppet/puppet/format/text.py 594 additions, 0 deletionsmuppet/puppet/format/text.py
- muppet/puppet/parser.py 7 additions, 26 deletionsmuppet/puppet/parser.py
- tests/test_ast.py 633 additions, 0 deletionstests/test_ast.py
- tests/test_parse.py 0 additions, 538 deletionstests/test_parse.py
Loading
Please register or sign in to comment