diff --git a/README.md b/README.md
index aa6e477..eeb2aa1 100644
--- a/README.md
+++ b/README.md
@@ -24,13 +24,87 @@ The DLL does code preprocessing and other operations that were deemed too slow t
The scripts use `object_event_add` + `event_perform_object` to store and call the final code without parsing penalties that would occur with `execute_string`.
-## Intended use cases
-
+Syntax |
+Result |
+Notes |
+
+
+
+
+```gml
+var i = 0
+globalvar g = 1
+```
+
+ |
+
+```gml
+var i; i = 0
+globalvar g; g = 1
+```
-\
-~~What use cases?~~
+ |
+
+Single-variable declarations only!
+
+ |
+
+
+
+```gml
+enum E {
+ A,
+ B,
+ C = 5,
+ D
+}
+trace(E.D);
+```
+
+ |
+
+```gml
+global.__E__A = 0;
+global.__E__B = 1;
+global.__E__C = 5;
+global.__E__D = 6;
+trace(global.__E__D);
+```
+
+ |
+
+Init is done on spot - avoid function calls in enum field "values".
+
+ |
+
+
+
+```gml
+missing(1, 2);
+```
+
+ |
+
+```gml
+snippet_call("missing", 1, 2);
+```
+
+ |
+
+Allows snippets to call each other without forward declaration.
+
+ |
+
+
+
+## Intended use cases
-
+|  |
+|:-:|
+| ~~What use cases?~~ |
You could use it for dynamic content loading if you are making a game in GM8.1.
@@ -57,6 +131,7 @@ If you compile a [GMEdit](https://github.com/YellowAfterlife/GMEdit/) version fr
- Wildcard support in listfiles?\
(`folder/*.gml`)
+- `script_execute` hook (that does either script_execute or snippet_call depending on whether index is number/string)
## Meta
diff --git a/snippets/CharTools.h b/snippets/CharTools.h
index 8cea18b..0fe49a6 100644
--- a/snippets/CharTools.h
+++ b/snippets/CharTools.h
@@ -1,6 +1,9 @@
#pragma once
namespace CharTools {
+ inline bool isLineSpace(char c) {
+ return c == ' ' || c == '\t';
+ }
inline bool isSpace(char c) {
switch (c) {
case ' ': case '\t': case '\r': case '\n': return true;
diff --git a/snippets/preBuild.bat b/snippets/preBuild.bat
index c53dc20..55c9f34 100644
--- a/snippets/preBuild.bat
+++ b/snippets/preBuild.bat
@@ -1,4 +1,5 @@
@echo off
+goto bye
set dllPath=%~1
set solutionDir=%~2
set projectDir=%~3
@@ -16,4 +17,5 @@ if %ERRORLEVEL% EQU 0 (
--gml "%solutionDir%snippets_gml/snippets_discard.gml"^
--gmk "%solutionDir%snippets_gml/snippets_autogen.gml"^
%projectDir%snippets.cpp
-)
\ No newline at end of file
+)
+:bye
\ No newline at end of file
diff --git a/snippets/snippets.cpp b/snippets/snippets.cpp
index e23bea0..9dd31b7 100644
--- a/snippets/snippets.cpp
+++ b/snippets/snippets.cpp
@@ -4,6 +4,7 @@
#include