mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
lsp: Add compile an decompile commands
This commit is contained in:
parent
8c3c43a34a
commit
6f4806bfb3
5 changed files with 74 additions and 3 deletions
|
@ -92,3 +92,9 @@ def parse(filename):
|
|||
parser.setContentHandler(handler)
|
||||
parser.parse(filename)
|
||||
return handler.root
|
||||
|
||||
|
||||
def parse_string(xml):
|
||||
handler = Handler()
|
||||
parser = sax.parseString(xml, handler)
|
||||
return handler.root
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue