diff options
author | Matthew S <matthewsot@outlook.com> | 2017-01-16 16:37:17 -0800 |
---|---|---|
committer | Matthew S <matthewsot@outlook.com> | 2017-01-16 16:37:17 -0800 |
commit | 48ad2294f61a0fafd423951713ea8719a54912e7 (patch) | |
tree | e8f2bb8d40800166006f18b3eab0eecf175bdb7b | |
parent | 452e60a0032a1de1486b8e53db768e9c766f22c9 (diff) |
one random idea
-rw-r--r-- | css-yaepl/README.md | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/css-yaepl/README.md b/css-yaepl/README.md new file mode 100644 index 0000000..89e22d3 --- /dev/null +++ b/css-yaepl/README.md @@ -0,0 +1,32 @@ +# CSS-Yaepl +Mimics CSS syntax. + +- Target of action is declared first +- Property, or type of action, is then declared +- Finally, value or parameters of action is declared + +## Hello, World! +``` +my-string { + create-variable: String; + set-value: "Hello, World!"; +} +my-string-length { + create-variable: number; +} +my-string { + store-length: my-string-length; +} +output { + write: my-string; + write: my-string-length; +} +``` + +## Pros/Cons +Pros: +- Extremely simple to explain the basic syntax for creating and operating on objects (say the object name, then what you want to do, then specify the value for that thing you want to do). + +Cons: +- Very clunky very fast. +- This syntax makes sense for CSS because it is only doing one thing: modifying object properties. That doesn't really translate to something like Javascript.
\ No newline at end of file |