1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-25 04:55:07 +00:00
serenity/Userland/Libraries/LibGUI/GML
kleines Filmröllchen 41ef4f11dc LibGUI: Move GML parsing and formatting to new AST
This commit introduces a couple of connected changes that are hard to
untangle, unfortunately:
- Parse GML into the AST instead of JSON
- Change the load_from_json API on Widget to load_from_gml_ast
- Remove this same API from Core::Object as it isn't used outside of
  LibGUI and was a workaround for the object registration detection;
  by verifying the objects we're getting and casting we can remove this
  constraint.
- Format GML by calling the formating APIs on the AST itself; remove
  GMLFormatter.cpp as it's not needed anymore.

After this change, GML formatting already respects comments :^)
2022-02-07 18:39:50 +01:00
..
AST.h LibGUI: Add a custom GML AST 2022-02-07 18:39:50 +01:00
AutocompleteProvider.cpp LibGUI: Remove GML prefix in favor of proper namespace 2022-02-07 18:39:50 +01:00
AutocompleteProvider.h LibGUI: Remove GML prefix in favor of proper namespace 2022-02-07 18:39:50 +01:00
Formatter.h LibGUI: Move GML parsing and formatting to new AST 2022-02-07 18:39:50 +01:00
Lexer.cpp LibGUI: Remove GML prefix in favor of proper namespace 2022-02-07 18:39:50 +01:00
Lexer.h Userland: Undefine FOR_EACH_TOKEN_TYPE everywhere 2022-02-07 18:39:50 +01:00
Parser.cpp LibGUI: Move GML parsing and formatting to new AST 2022-02-07 18:39:50 +01:00
Parser.h LibGUI: Move GML parsing and formatting to new AST 2022-02-07 18:39:50 +01:00
SyntaxHighlighter.cpp LibGUI: Remove GML prefix in favor of proper namespace 2022-02-07 18:39:50 +01:00
SyntaxHighlighter.h LibGUI: Remove GML prefix in favor of proper namespace 2022-02-07 18:39:50 +01:00