Reorganize the parser/AST code

The code is now organized by syntax: `menu {}` in one file, `style` in
another, etc. This should make it easier to add syntax in the future.
This commit is contained in:
James Westman 2021-10-31 21:41:44 -05:00
parent dc7c0cabd8
commit bfd9daf6a9
No known key found for this signature in database
GPG key ID: CE2DBA0ADB654EA6
10 changed files with 486 additions and 344 deletions

View file

@ -0,0 +1,10 @@
""" Contains all the syntax beyond basic objects, properties, signal, and
templates. """
from .gtk_menu import menu
from .gtk_styles import styles
from .gtk_layout import layout
OBJECT_HOOKS = [menu]
OBJECT_CONTENT_HOOKS = [styles, layout]