aboutsummaryrefslogtreecommitdiff
path: root/example.csma
diff options
context:
space:
mode:
authorSyndamia <kamen@syndamia.com>2023-11-19 13:10:14 +0200
committerSyndamia <kamen@syndamia.com>2023-11-19 13:10:14 +0200
commita7fc04bfbf08921f084ef2f3ceaeee4da8cd95ce (patch)
treeadfe8a6ba5f78601d27f2393d97d0555bb14db57 /example.csma
parent23feb41a42e580f8e842dd99e8950785a0324bfa (diff)
downloadcsma-a7fc04bfbf08921f084ef2f3ceaeee4da8cd95ce.tar
csma-a7fc04bfbf08921f084ef2f3ceaeee4da8cd95ce.tar.gz
csma-a7fc04bfbf08921f084ef2f3ceaeee4da8cd95ce.zip
[preproc.awk] Added a more or less working preprocessor for CSMA, written in AWK
Diffstat (limited to 'example.csma')
-rw-r--r--example.csma42
1 files changed, 42 insertions, 0 deletions
diff --git a/example.csma b/example.csma
new file mode 100644
index 0000000..bc78e34
--- /dev/null
+++ b/example.csma
@@ -0,0 +1,42 @@
+<Colors> {
+ <Text> {
+ <FG> { red }
+ }
+}
+<Alignment> {
+ <Center> {
+ margin-left: auto;
+ margin-right: auto;
+ }
+}
+
+#b {
+ color: <Colors/Text/FG>;
+}
+
+<Object a> {
+ #a {
+ abc: a;
+ color: <Colors/Text/FG>;
+ margin: 2em;
+ }
+ <Object b>
+}
+
+<Object b/Val>
+
+<Object b>
+// This is an example object
+{
+ .b {
+ margin: 0.2em;
+ padding: 0.5em;
+ }
+ <Val> {
+ a {
+ display: table;
+ <Alignment/Center>
+ }
+ }
+}
+