diff options
Diffstat (limited to 'doc/docs/de')
31 files changed, 410 insertions, 186 deletions
diff --git a/doc/docs/de/doc/advanced/do.md b/doc/docs/de/doc/advanced/do.md index 6f81f9d..265a5ba 100644 --- a/doc/docs/de/doc/advanced/do.md +++ b/doc/docs/de/doc/advanced/do.md | |||
| @@ -8,6 +8,7 @@ do | |||
| 8 | print var | 8 | print var |
| 9 | print var -- nil hier | 9 | print var -- nil hier |
| 10 | ``` | 10 | ``` |
| 11 | |||
| 11 | <YueDisplay> | 12 | <YueDisplay> |
| 12 | 13 | ||
| 13 | ```yue | 14 | ```yue |
| @@ -31,6 +32,7 @@ counter = do | |||
| 31 | print counter! | 32 | print counter! |
| 32 | print counter! | 33 | print counter! |
| 33 | ``` | 34 | ``` |
| 35 | |||
| 34 | <YueDisplay> | 36 | <YueDisplay> |
| 35 | 37 | ||
| 36 | ```yue | 38 | ```yue |
| @@ -53,6 +55,7 @@ tbl = { | |||
| 53 | 1234 | 55 | 1234 |
| 54 | } | 56 | } |
| 55 | ``` | 57 | ``` |
| 58 | |||
| 56 | <YueDisplay> | 59 | <YueDisplay> |
| 57 | 60 | ||
| 58 | ```yue | 61 | ```yue |
diff --git a/doc/docs/de/doc/advanced/line-decorators.md b/doc/docs/de/doc/advanced/line-decorators.md index dd26925..dbeaeb5 100644 --- a/doc/docs/de/doc/advanced/line-decorators.md +++ b/doc/docs/de/doc/advanced/line-decorators.md | |||
| @@ -5,6 +5,7 @@ Zur Vereinfachung können `for`-Schleifen und `if`-Anweisungen auf einzelne Anwe | |||
| 5 | ```yuescript | 5 | ```yuescript |
| 6 | print "Hallo Welt" if name == "Rob" | 6 | print "Hallo Welt" if name == "Rob" |
| 7 | ``` | 7 | ``` |
| 8 | |||
| 8 | <YueDisplay> | 9 | <YueDisplay> |
| 9 | 10 | ||
| 10 | ```yue | 11 | ```yue |
| @@ -18,6 +19,7 @@ Und mit einfachen Schleifen: | |||
| 18 | ```yuescript | 19 | ```yuescript |
| 19 | print "Element: ", item for item in *items | 20 | print "Element: ", item for item in *items |
| 20 | ``` | 21 | ``` |
| 22 | |||
| 21 | <YueDisplay> | 23 | <YueDisplay> |
| 22 | 24 | ||
| 23 | ```yue | 25 | ```yue |
| @@ -33,6 +35,7 @@ game\update! while game\isRunning! | |||
| 33 | 35 | ||
| 34 | reader\parse_line! until reader\eof! | 36 | reader\parse_line! until reader\eof! |
| 35 | ``` | 37 | ``` |
| 38 | |||
| 36 | <YueDisplay> | 39 | <YueDisplay> |
| 37 | 40 | ||
| 38 | ```yue | 41 | ```yue |
diff --git a/doc/docs/de/doc/advanced/macro.md b/doc/docs/de/doc/advanced/macro.md index a3e155a..a030aea 100644 --- a/doc/docs/de/doc/advanced/macro.md +++ b/doc/docs/de/doc/advanced/macro.md | |||
| @@ -32,6 +32,7 @@ macro and = (...) -> "#{ table.concat {...}, ' and ' }" | |||
| 32 | if $and f1!, f2!, f3! | 32 | if $and f1!, f2!, f3! |
| 33 | print "OK" | 33 | print "OK" |
| 34 | ``` | 34 | ``` |
| 35 | |||
| 35 | <YueDisplay> | 36 | <YueDisplay> |
| 36 | 37 | ||
| 37 | ```yue | 38 | ```yue |
| @@ -94,6 +95,7 @@ if cond then | |||
| 94 | end | 95 | end |
| 95 | ]==] | 96 | ]==] |
| 96 | ``` | 97 | ``` |
| 98 | |||
| 97 | <YueDisplay> | 99 | <YueDisplay> |
| 98 | 100 | ||
| 99 | ```yue | 101 | ```yue |
| @@ -142,6 +144,7 @@ import "utils" as { | |||
| 142 | } | 144 | } |
| 143 | [1, 2, 3] |> $map(_ * 2) |> $filter(_ > 4) |> $each print _ | 145 | [1, 2, 3] |> $map(_ * 2) |> $filter(_ > 4) |> $each print _ |
| 144 | ``` | 146 | ``` |
| 147 | |||
| 145 | <YueDisplay> | 148 | <YueDisplay> |
| 146 | 149 | ||
| 147 | ```yue | 150 | ```yue |
| @@ -172,6 +175,7 @@ Es gibt einige eingebaute Makros, aber du kannst sie überschreiben, indem du Ma | |||
| 172 | print $FILE -- String des aktuellen Modulnamens | 175 | print $FILE -- String des aktuellen Modulnamens |
| 173 | print $LINE -- gibt 2 aus | 176 | print $LINE -- gibt 2 aus |
| 174 | ``` | 177 | ``` |
| 178 | |||
| 175 | <YueDisplay> | 179 | <YueDisplay> |
| 176 | 180 | ||
| 177 | ```yue | 181 | ```yue |
| @@ -238,6 +242,7 @@ macro printNumAndStr = (num `Num, str `String) -> | | |||
| 238 | 242 | ||
| 239 | $printNumAndStr 123, "hallo" | 243 | $printNumAndStr 123, "hallo" |
| 240 | ``` | 244 | ``` |
| 245 | |||
| 241 | <YueDisplay> | 246 | <YueDisplay> |
| 242 | 247 | ||
| 243 | ```yue | 248 | ```yue |
| @@ -262,6 +267,7 @@ macro printNumAndStr = (num, str) -> | |||
| 262 | 267 | ||
| 263 | $printNumAndStr 123, "hallo" | 268 | $printNumAndStr 123, "hallo" |
| 264 | ``` | 269 | ``` |
| 270 | |||
| 265 | <YueDisplay> | 271 | <YueDisplay> |
| 266 | 272 | ||
| 267 | ```yue | 273 | ```yue |
diff --git a/doc/docs/de/doc/advanced/module.md b/doc/docs/de/doc/advanced/module.md index bdc5d86..f20deec 100644 --- a/doc/docs/de/doc/advanced/module.md +++ b/doc/docs/de/doc/advanced/module.md | |||
| @@ -28,6 +28,7 @@ do | |||
| 28 | import "lpeg" as :C, :Ct, :Cmt | 28 | import "lpeg" as :C, :Ct, :Cmt |
| 29 | import "export" as {one, two, Something:{umm:{ch}}} | 29 | import "export" as {one, two, Something:{umm:{ch}}} |
| 30 | ``` | 30 | ``` |
| 31 | |||
| 31 | <YueDisplay> | 32 | <YueDisplay> |
| 32 | 33 | ||
| 33 | ```yue | 34 | ```yue |
| @@ -67,6 +68,7 @@ do | |||
| 67 | import table.concat | 68 | import table.concat |
| 68 | print concat ["a", tostring 1] | 69 | print concat ["a", tostring 1] |
| 69 | ``` | 70 | ``` |
| 71 | |||
| 70 | <YueDisplay> | 72 | <YueDisplay> |
| 71 | 73 | ||
| 72 | ```yue | 74 | ```yue |
| @@ -98,6 +100,7 @@ do | |||
| 98 | print FLAG | 100 | print FLAG |
| 99 | FLAG = 123 | 101 | FLAG = 123 |
| 100 | ``` | 102 | ``` |
| 103 | |||
| 101 | <YueDisplay> | 104 | <YueDisplay> |
| 102 | 105 | ||
| 103 | ```yue | 106 | ```yue |
| @@ -140,6 +143,7 @@ export y = -> | |||
| 140 | export class Something | 143 | export class Something |
| 141 | umm: "cool" | 144 | umm: "cool" |
| 142 | ``` | 145 | ``` |
| 146 | |||
| 143 | <YueDisplay> | 147 | <YueDisplay> |
| 144 | 148 | ||
| 145 | ```yue | 149 | ```yue |
| @@ -166,6 +170,7 @@ Benannter Export mit Destructuring. | |||
| 166 | export :loadstring, to_lua: tolua = yue | 170 | export :loadstring, to_lua: tolua = yue |
| 167 | export {itemA: {:fieldA = 'default'}} = tb | 171 | export {itemA: {:fieldA = 'default'}} = tb |
| 168 | ``` | 172 | ``` |
| 173 | |||
| 169 | <YueDisplay> | 174 | <YueDisplay> |
| 170 | 175 | ||
| 171 | ```yue | 176 | ```yue |
| @@ -182,6 +187,7 @@ export.itemA = tb | |||
| 182 | export.<index> = items | 187 | export.<index> = items |
| 183 | export["a-b-c"] = 123 | 188 | export["a-b-c"] = 123 |
| 184 | ``` | 189 | ``` |
| 190 | |||
| 185 | <YueDisplay> | 191 | <YueDisplay> |
| 186 | 192 | ||
| 187 | ```yue | 193 | ```yue |
| @@ -208,6 +214,7 @@ else | |||
| 208 | export with tmp | 214 | export with tmp |
| 209 | j = 2000 | 215 | j = 2000 |
| 210 | ``` | 216 | ``` |
| 217 | |||
| 211 | <YueDisplay> | 218 | <YueDisplay> |
| 212 | 219 | ||
| 213 | ```yue | 220 | ```yue |
| @@ -234,6 +241,7 @@ export default -> | |||
| 234 | print "hallo" | 241 | print "hallo" |
| 235 | 123 | 242 | 123 |
| 236 | ``` | 243 | ``` |
| 244 | |||
| 237 | <YueDisplay> | 245 | <YueDisplay> |
| 238 | 246 | ||
| 239 | ```yue | 247 | ```yue |
diff --git a/doc/docs/de/doc/advanced/try.md b/doc/docs/de/doc/advanced/try.md index 4550e92..2505967 100644 --- a/doc/docs/de/doc/advanced/try.md +++ b/doc/docs/de/doc/advanced/try.md | |||
| @@ -29,6 +29,7 @@ catch err | |||
| 29 | print yue.traceback err | 29 | print yue.traceback err |
| 30 | print result | 30 | print result |
| 31 | ``` | 31 | ``` |
| 32 | |||
| 32 | <YueDisplay> | 33 | <YueDisplay> |
| 33 | 34 | ||
| 34 | ```yue | 35 | ```yue |
| @@ -82,6 +83,7 @@ catch e | |||
| 82 | print e | 83 | print e |
| 83 | e | 84 | e |
| 84 | ``` | 85 | ``` |
| 86 | |||
| 85 | <YueDisplay> | 87 | <YueDisplay> |
| 86 | 88 | ||
| 87 | ```yue | 89 | ```yue |
diff --git a/doc/docs/de/doc/assignment/assignment.md b/doc/docs/de/doc/assignment/assignment.md index b74501f..ed56e46 100644 --- a/doc/docs/de/doc/assignment/assignment.md +++ b/doc/docs/de/doc/assignment/assignment.md | |||
| @@ -7,6 +7,7 @@ hello = "world" | |||
| 7 | a, b, c = 1, 2, 3 | 7 | a, b, c = 1, 2, 3 |
| 8 | hello = 123 -- nutzt die bestehende Variable | 8 | hello = 123 -- nutzt die bestehende Variable |
| 9 | ``` | 9 | ``` |
| 10 | |||
| 10 | <YueDisplay> | 11 | <YueDisplay> |
| 11 | 12 | ||
| 12 | ```yue | 13 | ```yue |
| @@ -31,6 +32,7 @@ x %= 10 | |||
| 31 | s ..= "world" -- legt eine neue lokale Variable an, wenn sie nicht existiert | 32 | s ..= "world" -- legt eine neue lokale Variable an, wenn sie nicht existiert |
| 32 | arg or= "default value" | 33 | arg or= "default value" |
| 33 | ``` | 34 | ``` |
| 35 | |||
| 34 | <YueDisplay> | 36 | <YueDisplay> |
| 35 | 37 | ||
| 36 | ```yue | 38 | ```yue |
| @@ -54,6 +56,7 @@ Mit verketteten Zuweisungen kannst du mehrere Variablen auf denselben Wert setze | |||
| 54 | a = b = c = d = e = 0 | 56 | a = b = c = d = e = 0 |
| 55 | x = y = z = f! | 57 | x = y = z = f! |
| 56 | ``` | 58 | ``` |
| 59 | |||
| 57 | <YueDisplay> | 60 | <YueDisplay> |
| 58 | 61 | ||
| 59 | ```yue | 62 | ```yue |
| @@ -81,6 +84,7 @@ do | |||
| 81 | a = 1 | 84 | a = 1 |
| 82 | B = 2 | 85 | B = 2 |
| 83 | ``` | 86 | ``` |
| 87 | |||
| 84 | <YueDisplay> | 88 | <YueDisplay> |
| 85 | 89 | ||
| 86 | ```yue | 90 | ```yue |
| @@ -120,6 +124,7 @@ do | |||
| 120 | B = 2 | 124 | B = 2 |
| 121 | local Temp = "a local value" | 125 | local Temp = "a local value" |
| 122 | ``` | 126 | ``` |
| 127 | |||
| 123 | <YueDisplay> | 128 | <YueDisplay> |
| 124 | 129 | ||
| 125 | ```yue | 130 | ```yue |
diff --git a/doc/docs/de/doc/assignment/destructuring-assignment.md b/doc/docs/de/doc/assignment/destructuring-assignment.md index 0a08e22..5582468 100644 --- a/doc/docs/de/doc/assignment/destructuring-assignment.md +++ b/doc/docs/de/doc/assignment/destructuring-assignment.md | |||
| @@ -12,6 +12,7 @@ thing = [1, 2] | |||
| 12 | [a, b] = thing | 12 | [a, b] = thing |
| 13 | print a, b | 13 | print a, b |
| 14 | ``` | 14 | ``` |
| 15 | |||
| 15 | <YueDisplay> | 16 | <YueDisplay> |
| 16 | 17 | ||
| 17 | ```yue | 18 | ```yue |
| @@ -37,6 +38,7 @@ print hello, the_day | |||
| 37 | 38 | ||
| 38 | :day = obj -- einfache Destructuring-Zuweisung ohne Klammern ist ok | 39 | :day = obj -- einfache Destructuring-Zuweisung ohne Klammern ist ok |
| 39 | ``` | 40 | ``` |
| 41 | |||
| 40 | <YueDisplay> | 42 | <YueDisplay> |
| 41 | 43 | ||
| 42 | ```yue | 44 | ```yue |
| @@ -68,6 +70,7 @@ obj2 = { | |||
| 68 | {numbers: [first, second], properties: {color: color}} = obj2 | 70 | {numbers: [first, second], properties: {color: color}} = obj2 |
| 69 | print first, second, color | 71 | print first, second, color |
| 70 | ``` | 72 | ``` |
| 73 | |||
| 71 | <YueDisplay> | 74 | <YueDisplay> |
| 72 | 75 | ||
| 73 | ```yue | 76 | ```yue |
| @@ -95,6 +98,7 @@ Wenn die Destructuring-Anweisung kompliziert ist, kannst du sie gerne auf mehrer | |||
| 95 | } | 98 | } |
| 96 | } = obj2 | 99 | } = obj2 |
| 97 | ``` | 100 | ``` |
| 101 | |||
| 98 | <YueDisplay> | 102 | <YueDisplay> |
| 99 | 103 | ||
| 100 | ```yue | 104 | ```yue |
| @@ -113,6 +117,7 @@ Es ist üblich, Werte aus einer Tabelle zu extrahieren und ihnen lokale Variable | |||
| 113 | ```yuescript | 117 | ```yuescript |
| 114 | {:concat, :insert} = table | 118 | {:concat, :insert} = table |
| 115 | ``` | 119 | ``` |
| 120 | |||
| 116 | <YueDisplay> | 121 | <YueDisplay> |
| 117 | 122 | ||
| 118 | ```yue | 123 | ```yue |
| @@ -126,6 +131,7 @@ Das ist effektiv dasselbe wie `import`, aber du kannst Felder umbenennen, indem | |||
| 126 | ```yuescript | 131 | ```yuescript |
| 127 | {:mix, :max, random: rand} = math | 132 | {:mix, :max, random: rand} = math |
| 128 | ``` | 133 | ``` |
| 134 | |||
| 129 | <YueDisplay> | 135 | <YueDisplay> |
| 130 | 136 | ||
| 131 | ```yue | 137 | ```yue |
| @@ -139,6 +145,7 @@ Du kannst Standardwerte beim Destructuring angeben, z. B.: | |||
| 139 | ```yuescript | 145 | ```yuescript |
| 140 | {:name = "namenlos", :job = "arbeitlos"} = person | 146 | {:name = "namenlos", :job = "arbeitlos"} = person |
| 141 | ``` | 147 | ``` |
| 148 | |||
| 142 | <YueDisplay> | 149 | <YueDisplay> |
| 143 | 150 | ||
| 144 | ```yue | 151 | ```yue |
| @@ -152,6 +159,7 @@ Du kannst `_` als Platzhalter verwenden, wenn du eine Listen-Destructuring-Zuwei | |||
| 152 | ```yuescript | 159 | ```yuescript |
| 153 | [_, two, _, four] = items | 160 | [_, two, _, four] = items |
| 154 | ``` | 161 | ``` |
| 162 | |||
| 155 | <YueDisplay> | 163 | <YueDisplay> |
| 156 | 164 | ||
| 157 | ```yue | 165 | ```yue |
| @@ -171,6 +179,7 @@ print first -- gibt aus: erster | |||
| 171 | print bulk -- gibt aus: {"zweiter", "dritter", "vierter"} | 179 | print bulk -- gibt aus: {"zweiter", "dritter", "vierter"} |
| 172 | print last -- gibt aus: letzter | 180 | print last -- gibt aus: letzter |
| 173 | ``` | 181 | ``` |
| 182 | |||
| 174 | <YueDisplay> | 183 | <YueDisplay> |
| 175 | 184 | ||
| 176 | ```yue | 185 | ```yue |
| @@ -195,6 +204,7 @@ Der Spread-Operator kann an unterschiedlichen Positionen verwendet werden, um un | |||
| 195 | -- Alles außer den mittleren Elementen erfassen | 204 | -- Alles außer den mittleren Elementen erfassen |
| 196 | [first, ..._, last] = orders | 205 | [first, ..._, last] = orders |
| 197 | ``` | 206 | ``` |
| 207 | |||
| 198 | <YueDisplay> | 208 | <YueDisplay> |
| 199 | 209 | ||
| 200 | ```yue | 210 | ```yue |
| @@ -223,6 +233,7 @@ tuples = [ | |||
| 223 | for [left, right] in *tuples | 233 | for [left, right] in *tuples |
| 224 | print left, right | 234 | print left, right |
| 225 | ``` | 235 | ``` |
| 236 | |||
| 226 | <YueDisplay> | 237 | <YueDisplay> |
| 227 | 238 | ||
| 228 | ```yue | 239 | ```yue |
diff --git a/doc/docs/de/doc/assignment/if-assignment.md b/doc/docs/de/doc/assignment/if-assignment.md index 884a8d2..21bc8be 100644 --- a/doc/docs/de/doc/assignment/if-assignment.md +++ b/doc/docs/de/doc/assignment/if-assignment.md | |||
| @@ -6,6 +6,7 @@ | |||
| 6 | if user := database.find_user "moon" | 6 | if user := database.find_user "moon" |
| 7 | print user.name | 7 | print user.name |
| 8 | ``` | 8 | ``` |
| 9 | |||
| 9 | <YueDisplay> | 10 | <YueDisplay> |
| 10 | 11 | ||
| 11 | ```yue | 12 | ```yue |
| @@ -23,6 +24,7 @@ elseif world := os.getenv "world" | |||
| 23 | else | 24 | else |
| 24 | print "nichts :(" | 25 | print "nichts :(" |
| 25 | ``` | 26 | ``` |
| 27 | |||
| 26 | <YueDisplay> | 28 | <YueDisplay> |
| 27 | 29 | ||
| 28 | ```yue | 30 | ```yue |
| @@ -43,6 +45,7 @@ if success, result := pcall -> "Ergebnis ohne Probleme erhalten" | |||
| 43 | print result -- Variable result ist im Scope | 45 | print result -- Variable result ist im Scope |
| 44 | print "OK" | 46 | print "OK" |
| 45 | ``` | 47 | ``` |
| 48 | |||
| 46 | <YueDisplay> | 49 | <YueDisplay> |
| 47 | 50 | ||
| 48 | ```yue | 51 | ```yue |
| @@ -62,6 +65,7 @@ while byte := stream\read_one! | |||
| 62 | -- mit dem Byte etwas anfangen | 65 | -- mit dem Byte etwas anfangen |
| 63 | print byte | 66 | print byte |
| 64 | ``` | 67 | ``` |
| 68 | |||
| 65 | <YueDisplay> | 69 | <YueDisplay> |
| 66 | 70 | ||
| 67 | ```yue | 71 | ```yue |
diff --git a/doc/docs/de/doc/assignment/the-using-clause-controlling-destructive-assignment.md b/doc/docs/de/doc/assignment/the-using-clause-controlling-destructive-assignment.md index 63bf016..ce8a45c 100644 --- a/doc/docs/de/doc/assignment/the-using-clause-controlling-destructive-assignment.md +++ b/doc/docs/de/doc/assignment/the-using-clause-controlling-destructive-assignment.md | |||
| @@ -17,6 +17,7 @@ my_func! | |||
| 17 | 17 | ||
| 18 | print i -- wird 0 ausgeben | 18 | print i -- wird 0 ausgeben |
| 19 | ``` | 19 | ``` |
| 20 | |||
| 20 | <YueDisplay> | 21 | <YueDisplay> |
| 21 | 22 | ||
| 22 | ```yue | 23 | ```yue |
| @@ -52,6 +53,7 @@ my_func = (using nil) -> | |||
| 52 | my_func! | 53 | my_func! |
| 53 | print i -- gibt 100 aus, i bleibt unverändert | 54 | print i -- gibt 100 aus, i bleibt unverändert |
| 54 | ``` | 55 | ``` |
| 56 | |||
| 55 | <YueDisplay> | 57 | <YueDisplay> |
| 56 | 58 | ||
| 57 | ```yue | 59 | ```yue |
| @@ -80,6 +82,7 @@ my_func = (add using k, i) -> | |||
| 80 | my_func(22) | 82 | my_func(22) |
| 81 | print i, k -- diese wurden aktualisiert | 83 | print i, k -- diese wurden aktualisiert |
| 82 | ``` | 84 | ``` |
| 85 | |||
| 83 | <YueDisplay> | 86 | <YueDisplay> |
| 84 | 87 | ||
| 85 | ```yue | 88 | ```yue |
diff --git a/doc/docs/de/doc/assignment/varargs-assignment.md b/doc/docs/de/doc/assignment/varargs-assignment.md index b211a8a..96927fa 100644 --- a/doc/docs/de/doc/assignment/varargs-assignment.md +++ b/doc/docs/de/doc/assignment/varargs-assignment.md | |||
| @@ -10,6 +10,7 @@ count = select '#', ... | |||
| 10 | first = select 1, ... | 10 | first = select 1, ... |
| 11 | print ok, count, first | 11 | print ok, count, first |
| 12 | ``` | 12 | ``` |
| 13 | |||
| 13 | <YueDisplay> | 14 | <YueDisplay> |
| 14 | 15 | ||
| 15 | ```yue | 16 | ```yue |
diff --git a/doc/docs/de/doc/control-flow/conditionals.md b/doc/docs/de/doc/control-flow/conditionals.md index d20e6e3..56663d1 100644 --- a/doc/docs/de/doc/control-flow/conditionals.md +++ b/doc/docs/de/doc/control-flow/conditionals.md | |||
| @@ -7,6 +7,7 @@ if have_coins | |||
| 7 | else | 7 | else |
| 8 | print "Keine Münzen" | 8 | print "Keine Münzen" |
| 9 | ``` | 9 | ``` |
| 10 | |||
| 10 | <YueDisplay> | 11 | <YueDisplay> |
| 11 | 12 | ||
| 12 | ```yue | 13 | ```yue |
| @@ -25,6 +26,7 @@ Eine Kurzsyntax für einzelne Anweisungen kann ebenfalls verwendet werden: | |||
| 25 | have_coins = false | 26 | have_coins = false |
| 26 | if have_coins then print "Münzen erhalten" else print "Keine Münzen" | 27 | if have_coins then print "Münzen erhalten" else print "Keine Münzen" |
| 27 | ``` | 28 | ``` |
| 29 | |||
| 28 | <YueDisplay> | 30 | <YueDisplay> |
| 29 | 31 | ||
| 30 | ```yue | 32 | ```yue |
| @@ -40,6 +42,7 @@ Da `if`-Anweisungen als Ausdrücke verwendet werden können, kann man das auch s | |||
| 40 | have_coins = false | 42 | have_coins = false |
| 41 | print if have_coins then "Münzen erhalten" else "Keine Münzen" | 43 | print if have_coins then "Münzen erhalten" else "Keine Münzen" |
| 42 | ``` | 44 | ``` |
| 45 | |||
| 43 | <YueDisplay> | 46 | <YueDisplay> |
| 44 | 47 | ||
| 45 | ```yue | 48 | ```yue |
| @@ -65,6 +68,7 @@ else | |||
| 65 | 68 | ||
| 66 | print message -- gibt aus: Ich bin sehr groß | 69 | print message -- gibt aus: Ich bin sehr groß |
| 67 | ``` | 70 | ``` |
| 71 | |||
| 68 | <YueDisplay> | 72 | <YueDisplay> |
| 69 | 73 | ||
| 70 | ```yue | 74 | ```yue |
| @@ -90,6 +94,7 @@ Das Gegenteil von `if` ist `unless`: | |||
| 90 | unless os.date("%A") == "Monday" | 94 | unless os.date("%A") == "Monday" |
| 91 | print "Es ist nicht Montag!" | 95 | print "Es ist nicht Montag!" |
| 92 | ``` | 96 | ``` |
| 97 | |||
| 93 | <YueDisplay> | 98 | <YueDisplay> |
| 94 | 99 | ||
| 95 | ```yue | 100 | ```yue |
| @@ -102,6 +107,7 @@ unless os.date("%A") == "Monday" | |||
| 102 | ```yuescript | 107 | ```yuescript |
| 103 | print "You're lucky!" unless math.random! > 0.1 | 108 | print "You're lucky!" unless math.random! > 0.1 |
| 104 | ``` | 109 | ``` |
| 110 | |||
| 105 | <YueDisplay> | 111 | <YueDisplay> |
| 106 | 112 | ||
| 107 | ```yue | 113 | ```yue |
| @@ -123,6 +129,7 @@ if a in [1, 3, 5, 7] | |||
| 123 | if a in list | 129 | if a in list |
| 124 | print "Prüfen, ob `a` in einer Liste ist" | 130 | print "Prüfen, ob `a` in einer Liste ist" |
| 125 | ``` | 131 | ``` |
| 132 | |||
| 126 | <YueDisplay> | 133 | <YueDisplay> |
| 127 | 134 | ||
| 128 | ```yue | 135 | ```yue |
diff --git a/doc/docs/de/doc/control-flow/continue.md b/doc/docs/de/doc/control-flow/continue.md index a6210d4..4b5ccdc 100644 --- a/doc/docs/de/doc/control-flow/continue.md +++ b/doc/docs/de/doc/control-flow/continue.md | |||
| @@ -9,6 +9,7 @@ while i < 10 | |||
| 9 | continue if i % 2 == 0 | 9 | continue if i % 2 == 0 |
| 10 | print i | 10 | print i |
| 11 | ``` | 11 | ``` |
| 12 | |||
| 12 | <YueDisplay> | 13 | <YueDisplay> |
| 13 | 14 | ||
| 14 | ```yue | 15 | ```yue |
| @@ -29,6 +30,7 @@ odds = for x in *my_numbers | |||
| 29 | continue if x % 2 == 1 | 30 | continue if x % 2 == 1 |
| 30 | x | 31 | x |
| 31 | ``` | 32 | ``` |
| 33 | |||
| 32 | <YueDisplay> | 34 | <YueDisplay> |
| 33 | 35 | ||
| 34 | ```yue | 36 | ```yue |
diff --git a/doc/docs/de/doc/control-flow/for-loop.md b/doc/docs/de/doc/control-flow/for-loop.md index 3bf63d4..827d983 100644 --- a/doc/docs/de/doc/control-flow/for-loop.md +++ b/doc/docs/de/doc/control-flow/for-loop.md | |||
| @@ -12,6 +12,7 @@ for k = 1, 15, 2 -- ein optionaler Schritt | |||
| 12 | for key, value in pairs object | 12 | for key, value in pairs object |
| 13 | print key, value | 13 | print key, value |
| 14 | ``` | 14 | ``` |
| 15 | |||
| 15 | <YueDisplay> | 16 | <YueDisplay> |
| 16 | 17 | ||
| 17 | ```yue | 18 | ```yue |
| @@ -33,6 +34,7 @@ Die Slicing- und **\***-Operatoren können verwendet werden, genau wie bei Compr | |||
| 33 | for item in *items[2, 4] | 34 | for item in *items[2, 4] |
| 34 | print item | 35 | print item |
| 35 | ``` | 36 | ``` |
| 37 | |||
| 36 | <YueDisplay> | 38 | <YueDisplay> |
| 37 | 39 | ||
| 38 | ```yue | 40 | ```yue |
| @@ -49,6 +51,7 @@ for item in *items do print item | |||
| 49 | 51 | ||
| 50 | for j = 1, 10, 3 do print j | 52 | for j = 1, 10, 3 do print j |
| 51 | ``` | 53 | ``` |
| 54 | |||
| 52 | <YueDisplay> | 55 | <YueDisplay> |
| 53 | 56 | ||
| 54 | ```yue | 57 | ```yue |
| @@ -70,6 +73,7 @@ doubled_evens = for i = 1, 20 | |||
| 70 | else | 73 | else |
| 71 | i | 74 | i |
| 72 | ``` | 75 | ``` |
| 76 | |||
| 73 | <YueDisplay> | 77 | <YueDisplay> |
| 74 | 78 | ||
| 75 | ```yue | 79 | ```yue |
| @@ -90,6 +94,7 @@ Beispiel: die erste Zahl größer als 10 finden: | |||
| 90 | first_large = for n in *numbers | 94 | first_large = for n in *numbers |
| 91 | break n if n > 10 | 95 | break n if n > 10 |
| 92 | ``` | 96 | ``` |
| 97 | |||
| 93 | <YueDisplay> | 98 | <YueDisplay> |
| 94 | 99 | ||
| 95 | ```yue | 100 | ```yue |
| @@ -112,6 +117,7 @@ func_b = -> return for i = 1, 10 do i | |||
| 112 | print func_a! -- gibt nil aus | 117 | print func_a! -- gibt nil aus |
| 113 | print func_b! -- gibt Tabellenobjekt aus | 118 | print func_b! -- gibt Tabellenobjekt aus |
| 114 | ``` | 119 | ``` |
| 120 | |||
| 115 | <YueDisplay> | 121 | <YueDisplay> |
| 116 | 122 | ||
| 117 | ```yue | 123 | ```yue |
diff --git a/doc/docs/de/doc/control-flow/switch.md b/doc/docs/de/doc/control-flow/switch.md index 81e08bd..5e5107b 100644 --- a/doc/docs/de/doc/control-flow/switch.md +++ b/doc/docs/de/doc/control-flow/switch.md | |||
| @@ -11,6 +11,7 @@ switch name := "Dan" | |||
| 11 | else | 11 | else |
| 12 | print "Ich kenne dich nicht mit dem Namen #{name}" | 12 | print "Ich kenne dich nicht mit dem Namen #{name}" |
| 13 | ``` | 13 | ``` |
| 14 | |||
| 14 | <YueDisplay> | 15 | <YueDisplay> |
| 15 | 16 | ||
| 16 | ```yue | 17 | ```yue |
| @@ -39,6 +40,7 @@ next_number = switch b | |||
| 39 | else | 40 | else |
| 40 | error "so hoch kann ich nicht zählen!" | 41 | error "so hoch kann ich nicht zählen!" |
| 41 | ``` | 42 | ``` |
| 43 | |||
| 42 | <YueDisplay> | 44 | <YueDisplay> |
| 43 | 45 | ||
| 44 | ```yue | 46 | ```yue |
| @@ -62,6 +64,7 @@ msg = switch math.random(1, 5) | |||
| 62 | when 2 then "Du hast fast Glück" | 64 | when 2 then "Du hast fast Glück" |
| 63 | else "nicht so viel Glück" | 65 | else "nicht so viel Glück" |
| 64 | ``` | 66 | ``` |
| 67 | |||
| 65 | <YueDisplay> | 68 | <YueDisplay> |
| 66 | 69 | ||
| 67 | ```yue | 70 | ```yue |
| @@ -87,6 +90,7 @@ switch math.random(1, 5) when 1 | |||
| 87 | else | 90 | else |
| 88 | print "nicht so viel Glück" | 91 | print "nicht so viel Glück" |
| 89 | ``` | 92 | ``` |
| 93 | |||
| 90 | <YueDisplay> | 94 | <YueDisplay> |
| 91 | 95 | ||
| 92 | ```yue | 96 | ```yue |
| @@ -124,6 +128,7 @@ for item in *items | |||
| 124 | when :width, :height | 128 | when :width, :height |
| 125 | print "Größe #{width}, #{height}" | 129 | print "Größe #{width}, #{height}" |
| 126 | ``` | 130 | ``` |
| 131 | |||
| 127 | <YueDisplay> | 132 | <YueDisplay> |
| 128 | 133 | ||
| 129 | ```yue | 134 | ```yue |
| @@ -154,6 +159,7 @@ switch item | |||
| 154 | when {pos: {:x = 50, :y = 200}} | 159 | when {pos: {:x = 50, :y = 200}} |
| 155 | print "Vec2 #{x}, #{y}" -- Tabellen-Destrukturierung greift trotzdem | 160 | print "Vec2 #{x}, #{y}" -- Tabellen-Destrukturierung greift trotzdem |
| 156 | ``` | 161 | ``` |
| 162 | |||
| 157 | <YueDisplay> | 163 | <YueDisplay> |
| 158 | 164 | ||
| 159 | ```yue | 165 | ```yue |
| @@ -181,6 +187,7 @@ switch tb | |||
| 181 | when [1, 2, b = 3] -- b hat einen Standardwert | 187 | when [1, 2, b = 3] -- b hat einen Standardwert |
| 182 | print "1, 2, #{b}" | 188 | print "1, 2, #{b}" |
| 183 | ``` | 189 | ``` |
| 190 | |||
| 184 | <YueDisplay> | 191 | <YueDisplay> |
| 185 | 192 | ||
| 186 | ```yue | 193 | ```yue |
| @@ -206,6 +213,7 @@ switch tb | |||
| 206 | else | 213 | else |
| 207 | print "ungültig" | 214 | print "ungültig" |
| 208 | ``` | 215 | ``` |
| 216 | |||
| 209 | <YueDisplay> | 217 | <YueDisplay> |
| 210 | 218 | ||
| 211 | ```yue | 219 | ```yue |
| @@ -231,6 +239,7 @@ switch tb | |||
| 231 | else | 239 | else |
| 232 | print "ungültig" | 240 | print "ungültig" |
| 233 | ``` | 241 | ``` |
| 242 | |||
| 234 | <YueDisplay> | 243 | <YueDisplay> |
| 235 | 244 | ||
| 236 | ```yue | 245 | ```yue |
| @@ -257,6 +266,7 @@ switch tb | |||
| 257 | ] | 266 | ] |
| 258 | print "getroffen", fourth | 267 | print "getroffen", fourth |
| 259 | ``` | 268 | ``` |
| 269 | |||
| 260 | <YueDisplay> | 270 | <YueDisplay> |
| 261 | 271 | ||
| 262 | ```yue | 272 | ```yue |
| @@ -282,6 +292,7 @@ switch segments | |||
| 282 | print "Ressource:", resource -- gibt aus: "logs" | 292 | print "Ressource:", resource -- gibt aus: "logs" |
| 283 | print "Aktion:", action -- gibt aus: "view" | 293 | print "Aktion:", action -- gibt aus: "view" |
| 284 | ``` | 294 | ``` |
| 295 | |||
| 285 | <YueDisplay> | 296 | <YueDisplay> |
| 286 | 297 | ||
| 287 | ```yue | 298 | ```yue |
diff --git a/doc/docs/de/doc/control-flow/while-loop.md b/doc/docs/de/doc/control-flow/while-loop.md index a875bf9..6d9f089 100644 --- a/doc/docs/de/doc/control-flow/while-loop.md +++ b/doc/docs/de/doc/control-flow/while-loop.md | |||
| @@ -10,6 +10,7 @@ while i > 0 | |||
| 10 | 10 | ||
| 11 | while running == true do my_function! | 11 | while running == true do my_function! |
| 12 | ``` | 12 | ``` |
| 13 | |||
| 13 | <YueDisplay> | 14 | <YueDisplay> |
| 14 | 15 | ||
| 15 | ```yue | 16 | ```yue |
| @@ -31,6 +32,7 @@ until i == 0 | |||
| 31 | 32 | ||
| 32 | until running == false do my_function! | 33 | until running == false do my_function! |
| 33 | ``` | 34 | ``` |
| 35 | |||
| 34 | <YueDisplay> | 36 | <YueDisplay> |
| 35 | 37 | ||
| 36 | ```yue | 38 | ```yue |
| @@ -56,6 +58,7 @@ repeat | |||
| 56 | i -= 1 | 58 | i -= 1 |
| 57 | until i == 0 | 59 | until i == 0 |
| 58 | ``` | 60 | ``` |
| 61 | |||
| 59 | <YueDisplay> | 62 | <YueDisplay> |
| 60 | 63 | ||
| 61 | ```yue | 64 | ```yue |
diff --git a/doc/docs/de/doc/data-structures/comprehensions.md b/doc/docs/de/doc/data-structures/comprehensions.md index 7e00c57..4d74e06 100644 --- a/doc/docs/de/doc/data-structures/comprehensions.md +++ b/doc/docs/de/doc/data-structures/comprehensions.md | |||
| @@ -10,6 +10,7 @@ Das folgende Beispiel erstellt eine Kopie der `items`-Tabelle, aber mit verdoppe | |||
| 10 | items = [ 1, 2, 3, 4 ] | 10 | items = [ 1, 2, 3, 4 ] |
| 11 | doubled = [item * 2 for i, item in ipairs items] | 11 | doubled = [item * 2 for i, item in ipairs items] |
| 12 | ``` | 12 | ``` |
| 13 | |||
| 13 | <YueDisplay> | 14 | <YueDisplay> |
| 14 | 15 | ||
| 15 | ```yue | 16 | ```yue |
| @@ -24,6 +25,7 @@ Die Elemente in der neuen Tabelle können mit einer `when`-Klausel eingeschränk | |||
| 24 | ```yuescript | 25 | ```yuescript |
| 25 | slice = [item for i, item in ipairs items when i > 1 and i < 3] | 26 | slice = [item for i, item in ipairs items when i > 1 and i < 3] |
| 26 | ``` | 27 | ``` |
| 28 | |||
| 27 | <YueDisplay> | 29 | <YueDisplay> |
| 28 | 30 | ||
| 29 | ```yue | 31 | ```yue |
| @@ -37,6 +39,7 @@ Da es üblich ist, über die Werte einer numerisch indizierten Tabelle zu iterie | |||
| 37 | ```yuescript | 39 | ```yuescript |
| 38 | doubled = [item * 2 for item in *items] | 40 | doubled = [item * 2 for item in *items] |
| 39 | ``` | 41 | ``` |
| 42 | |||
| 40 | <YueDisplay> | 43 | <YueDisplay> |
| 41 | 44 | ||
| 42 | ```yue | 45 | ```yue |
| @@ -55,6 +58,7 @@ data = | |||
| 55 | flat = [...v for k,v in pairs data] | 58 | flat = [...v for k,v in pairs data] |
| 56 | -- flat ist jetzt [1, 2, 3, 4, 5, 6] | 59 | -- flat ist jetzt [1, 2, 3, 4, 5, 6] |
| 57 | ``` | 60 | ``` |
| 61 | |||
| 58 | <YueDisplay> | 62 | <YueDisplay> |
| 59 | 63 | ||
| 60 | ```yue | 64 | ```yue |
| @@ -79,6 +83,7 @@ y_coords = [9, 2, 3] | |||
| 79 | points = [ [x, y] for x in *x_coords \ | 83 | points = [ [x, y] for x in *x_coords \ |
| 80 | for y in *y_coords] | 84 | for y in *y_coords] |
| 81 | ``` | 85 | ``` |
| 86 | |||
| 82 | <YueDisplay> | 87 | <YueDisplay> |
| 83 | 88 | ||
| 84 | ```yue | 89 | ```yue |
| @@ -96,6 +101,7 @@ Numerische `for`-Schleifen können ebenfalls in Comprehensions verwendet werden: | |||
| 96 | ```yuescript | 101 | ```yuescript |
| 97 | evens = [i for i = 1, 100 when i % 2 == 0] | 102 | evens = [i for i = 1, 100 when i % 2 == 0] |
| 98 | ``` | 103 | ``` |
| 104 | |||
| 99 | <YueDisplay> | 105 | <YueDisplay> |
| 100 | 106 | ||
| 101 | ```yue | 107 | ```yue |
| @@ -119,6 +125,7 @@ thing = { | |||
| 119 | 125 | ||
| 120 | thing_copy = {k, v for k, v in pairs thing} | 126 | thing_copy = {k, v for k, v in pairs thing} |
| 121 | ``` | 127 | ``` |
| 128 | |||
| 122 | <YueDisplay> | 129 | <YueDisplay> |
| 123 | 130 | ||
| 124 | ```yue | 131 | ```yue |
| @@ -136,6 +143,7 @@ thing_copy = {k, v for k, v in pairs thing} | |||
| 136 | ```yuescript | 143 | ```yuescript |
| 137 | no_color = {k, v for k, v in pairs thing when k != "color"} | 144 | no_color = {k, v for k, v in pairs thing when k != "color"} |
| 138 | ``` | 145 | ``` |
| 146 | |||
| 139 | <YueDisplay> | 147 | <YueDisplay> |
| 140 | 148 | ||
| 141 | ```yue | 149 | ```yue |
| @@ -150,6 +158,7 @@ Der **\***-Operator wird ebenfalls unterstützt. Hier erstellen wir eine Nachsch | |||
| 150 | numbers = [1, 2, 3, 4] | 158 | numbers = [1, 2, 3, 4] |
| 151 | sqrts = {i, math.sqrt i for i in *numbers} | 159 | sqrts = {i, math.sqrt i for i in *numbers} |
| 152 | ``` | 160 | ``` |
| 161 | |||
| 153 | <YueDisplay> | 162 | <YueDisplay> |
| 154 | 163 | ||
| 155 | ```yue | 164 | ```yue |
| @@ -167,6 +176,7 @@ In diesem Beispiel konvertieren wir ein Array von Paaren in eine Tabelle, wobei | |||
| 167 | tuples = [ ["hallo", "Welt"], ["foo", "bar"]] | 176 | tuples = [ ["hallo", "Welt"], ["foo", "bar"]] |
| 168 | tbl = {unpack tuple for tuple in *tuples} | 177 | tbl = {unpack tuple for tuple in *tuples} |
| 169 | ``` | 178 | ``` |
| 179 | |||
| 170 | <YueDisplay> | 180 | <YueDisplay> |
| 171 | 181 | ||
| 172 | ```yue | 182 | ```yue |
| @@ -185,6 +195,7 @@ Hier setzen wir die minimalen und maximalen Grenzen und nehmen alle Elemente mit | |||
| 185 | ```yuescript | 195 | ```yuescript |
| 186 | slice = [item for item in *items[1, 5]] | 196 | slice = [item for item in *items[1, 5]] |
| 187 | ``` | 197 | ``` |
| 198 | |||
| 188 | <YueDisplay> | 199 | <YueDisplay> |
| 189 | 200 | ||
| 190 | ```yue | 201 | ```yue |
| @@ -198,6 +209,7 @@ Jedes der Slice-Argumente kann weggelassen werden, um einen sinnvollen Standard | |||
| 198 | ```yuescript | 209 | ```yuescript |
| 199 | slice = [item for item in *items[2,]] | 210 | slice = [item for item in *items[2,]] |
| 200 | ``` | 211 | ``` |
| 212 | |||
| 201 | <YueDisplay> | 213 | <YueDisplay> |
| 202 | 214 | ||
| 203 | ```yue | 215 | ```yue |
| @@ -211,6 +223,7 @@ Wenn die Mindestgrenze weggelassen wird, ist sie standardmäßig 1. Hier geben w | |||
| 211 | ```yuescript | 223 | ```yuescript |
| 212 | slice = [item for item in *items[,,2]] | 224 | slice = [item for item in *items[,,2]] |
| 213 | ``` | 225 | ``` |
| 226 | |||
| 214 | <YueDisplay> | 227 | <YueDisplay> |
| 215 | 228 | ||
| 216 | ```yue | 229 | ```yue |
| @@ -225,6 +238,7 @@ Sowohl die Mindest- als auch die Maximalgrenze können negativ sein; dann werden | |||
| 225 | -- die letzten 4 Elemente nehmen | 238 | -- die letzten 4 Elemente nehmen |
| 226 | slice = [item for item in *items[-4,-1]] | 239 | slice = [item for item in *items[-4,-1]] |
| 227 | ``` | 240 | ``` |
| 241 | |||
| 228 | <YueDisplay> | 242 | <YueDisplay> |
| 229 | 243 | ||
| 230 | ```yue | 244 | ```yue |
| @@ -239,6 +253,7 @@ Die Schrittweite kann ebenfalls negativ sein, wodurch die Elemente in umgekehrte | |||
| 239 | ```yuescript | 253 | ```yuescript |
| 240 | reverse_slice = [item for item in *items[-1,1,-1]] | 254 | reverse_slice = [item for item in *items[-1,1,-1]] |
| 241 | ``` | 255 | ``` |
| 256 | |||
| 242 | <YueDisplay> | 257 | <YueDisplay> |
| 243 | 258 | ||
| 244 | ```yue | 259 | ```yue |
| @@ -258,6 +273,7 @@ sub_list = items[2, 4] | |||
| 258 | -- die letzten 4 Elemente nehmen | 273 | -- die letzten 4 Elemente nehmen |
| 259 | last_four_items = items[-4, -1] | 274 | last_four_items = items[-4, -1] |
| 260 | ``` | 275 | ``` |
| 276 | |||
| 261 | <YueDisplay> | 277 | <YueDisplay> |
| 262 | 278 | ||
| 263 | ```yue | 279 | ```yue |
diff --git a/doc/docs/de/doc/data-structures/table-literals.md b/doc/docs/de/doc/data-structures/table-literals.md index 46181d7..4b127d8 100644 --- a/doc/docs/de/doc/data-structures/table-literals.md +++ b/doc/docs/de/doc/data-structures/table-literals.md | |||
| @@ -5,6 +5,7 @@ Wie in Lua werden Tabellen mit geschweiften Klammern definiert. | |||
| 5 | ```yuescript | 5 | ```yuescript |
| 6 | some_values = [1, 2, 3, 4] | 6 | some_values = [1, 2, 3, 4] |
| 7 | ``` | 7 | ``` |
| 8 | |||
| 8 | <YueDisplay> | 9 | <YueDisplay> |
| 9 | 10 | ||
| 10 | ```yue | 11 | ```yue |
| @@ -22,6 +23,7 @@ some_values = { | |||
| 22 | ["Lieblingsessen"]: "Reis" | 23 | ["Lieblingsessen"]: "Reis" |
| 23 | } | 24 | } |
| 24 | ``` | 25 | ``` |
| 26 | |||
| 25 | <YueDisplay> | 27 | <YueDisplay> |
| 26 | 28 | ||
| 27 | ```yue | 29 | ```yue |
| @@ -42,6 +44,7 @@ profile = | |||
| 42 | shoe_size: 13, | 44 | shoe_size: 13, |
| 43 | favorite_foods: ["Eis", "Donuts"] | 45 | favorite_foods: ["Eis", "Donuts"] |
| 44 | ``` | 46 | ``` |
| 47 | |||
| 45 | <YueDisplay> | 48 | <YueDisplay> |
| 46 | 49 | ||
| 47 | ```yue | 50 | ```yue |
| @@ -63,6 +66,7 @@ values = { | |||
| 63 | occupation: "Verbrechensbekämpfung" | 66 | occupation: "Verbrechensbekämpfung" |
| 64 | } | 67 | } |
| 65 | ``` | 68 | ``` |
| 69 | |||
| 66 | <YueDisplay> | 70 | <YueDisplay> |
| 67 | 71 | ||
| 68 | ```yue | 72 | ```yue |
| @@ -83,6 +87,7 @@ my_function dance: "Tango", partner: "keiner" | |||
| 83 | 87 | ||
| 84 | y = type: "Hund", legs: 4, tails: 1 | 88 | y = type: "Hund", legs: 4, tails: 1 |
| 85 | ``` | 89 | ``` |
| 90 | |||
| 86 | <YueDisplay> | 91 | <YueDisplay> |
| 87 | 92 | ||
| 88 | ```yue | 93 | ```yue |
| @@ -101,6 +106,7 @@ tbl = { | |||
| 101 | end: "Hunger" | 106 | end: "Hunger" |
| 102 | } | 107 | } |
| 103 | ``` | 108 | ``` |
| 109 | |||
| 104 | <YueDisplay> | 110 | <YueDisplay> |
| 105 | 111 | ||
| 106 | ```yue | 112 | ```yue |
| @@ -121,6 +127,7 @@ person = { :hair, :height, shoe_size: 40 } | |||
| 121 | 127 | ||
| 122 | print_table :hair, :height | 128 | print_table :hair, :height |
| 123 | ``` | 129 | ``` |
| 130 | |||
| 124 | <YueDisplay> | 131 | <YueDisplay> |
| 125 | 132 | ||
| 126 | ```yue | 133 | ```yue |
| @@ -141,6 +148,7 @@ t = { | |||
| 141 | "Hallo Welt": true | 148 | "Hallo Welt": true |
| 142 | } | 149 | } |
| 143 | ``` | 150 | ``` |
| 151 | |||
| 144 | <YueDisplay> | 152 | <YueDisplay> |
| 145 | 153 | ||
| 146 | ```yue | 154 | ```yue |
| @@ -158,6 +166,7 @@ Lua-Tabellen haben einen Array-Teil und einen Hash-Teil, aber manchmal möchte m | |||
| 158 | some_values = [1, 2, 3, 4] | 166 | some_values = [1, 2, 3, 4] |
| 159 | list_with_one_element = [1, ] | 167 | list_with_one_element = [1, ] |
| 160 | ``` | 168 | ``` |
| 169 | |||
| 161 | <YueDisplay> | 170 | <YueDisplay> |
| 162 | 171 | ||
| 163 | ```yue | 172 | ```yue |
diff --git a/doc/docs/de/doc/functions/backcalls.md b/doc/docs/de/doc/functions/backcalls.md index dbac86b..08b012d 100644 --- a/doc/docs/de/doc/functions/backcalls.md +++ b/doc/docs/de/doc/functions/backcalls.md | |||
| @@ -6,6 +6,7 @@ Backcalls werden verwendet, um Callbacks zu entkoppeln (unnesting). Sie werden m | |||
| 6 | x <- f | 6 | x <- f |
| 7 | print "hallo" .. x | 7 | print "hallo" .. x |
| 8 | ``` | 8 | ``` |
| 9 | |||
| 9 | <YueDisplay> | 10 | <YueDisplay> |
| 10 | 11 | ||
| 11 | ```yue | 12 | ```yue |
| @@ -21,6 +22,7 @@ Fat-Arrow-Funktionen sind ebenfalls verfügbar. | |||
| 21 | <= f | 22 | <= f |
| 22 | print @value | 23 | print @value |
| 23 | ``` | 24 | ``` |
| 25 | |||
| 24 | <YueDisplay> | 26 | <YueDisplay> |
| 25 | 27 | ||
| 26 | ```yue | 28 | ```yue |
| @@ -36,6 +38,7 @@ Du kannst einen Platzhalter angeben, an welcher Stelle die Backcall-Funktion als | |||
| 36 | (x) <- map _, [1, 2, 3] | 38 | (x) <- map _, [1, 2, 3] |
| 37 | x * 2 | 39 | x * 2 |
| 38 | ``` | 40 | ``` |
| 41 | |||
| 39 | <YueDisplay> | 42 | <YueDisplay> |
| 40 | 43 | ||
| 41 | ```yue | 44 | ```yue |
| @@ -55,6 +58,7 @@ result, msg = do | |||
| 55 | check info | 58 | check info |
| 56 | print result, msg | 59 | print result, msg |
| 57 | ``` | 60 | ``` |
| 61 | |||
| 58 | <YueDisplay> | 62 | <YueDisplay> |
| 59 | 63 | ||
| 60 | ```yue | 64 | ```yue |
diff --git a/doc/docs/de/doc/functions/function-literals.md b/doc/docs/de/doc/functions/function-literals.md index d3bfb11..1c9b00f 100644 --- a/doc/docs/de/doc/functions/function-literals.md +++ b/doc/docs/de/doc/functions/function-literals.md | |||
| @@ -6,6 +6,7 @@ Alle Funktionen werden mit einem Funktionsausdruck erstellt. Eine einfache Funkt | |||
| 6 | my_function = -> | 6 | my_function = -> |
| 7 | my_function() -- leere Funktion aufrufen | 7 | my_function() -- leere Funktion aufrufen |
| 8 | ``` | 8 | ``` |
| 9 | |||
| 9 | <YueDisplay> | 10 | <YueDisplay> |
| 10 | 11 | ||
| 11 | ```yue | 12 | ```yue |
| @@ -24,6 +25,7 @@ func_b = -> | |||
| 24 | value = 100 | 25 | value = 100 |
| 25 | print "Der Wert:", value | 26 | print "Der Wert:", value |
| 26 | ``` | 27 | ``` |
| 28 | |||
| 27 | <YueDisplay> | 29 | <YueDisplay> |
| 28 | 30 | ||
| 29 | ```yue | 31 | ```yue |
| @@ -42,6 +44,7 @@ Wenn eine Funktion keine Argumente hat, kann sie mit dem `!`-Operator statt leer | |||
| 42 | func_a! | 44 | func_a! |
| 43 | func_b() | 45 | func_b() |
| 44 | ``` | 46 | ``` |
| 47 | |||
| 45 | <YueDisplay> | 48 | <YueDisplay> |
| 46 | 49 | ||
| 47 | ```yue | 50 | ```yue |
| @@ -56,6 +59,7 @@ Funktionen mit Argumenten werden erstellt, indem der Pfeil von einer Argumentlis | |||
| 56 | ```yuescript | 59 | ```yuescript |
| 57 | sum = (x, y) -> print "Summe", x + y | 60 | sum = (x, y) -> print "Summe", x + y |
| 58 | ``` | 61 | ``` |
| 62 | |||
| 59 | <YueDisplay> | 63 | <YueDisplay> |
| 60 | 64 | ||
| 61 | ```yue | 65 | ```yue |
| @@ -72,6 +76,7 @@ print sum 10, 20 | |||
| 72 | 76 | ||
| 73 | a b c "a", "b", "c" | 77 | a b c "a", "b", "c" |
| 74 | ``` | 78 | ``` |
| 79 | |||
| 75 | <YueDisplay> | 80 | <YueDisplay> |
| 76 | 81 | ||
| 77 | ```yue | 82 | ```yue |
| @@ -88,6 +93,7 @@ Um Mehrdeutigkeiten beim Aufruf zu vermeiden, können die Argumente auch in Klam | |||
| 88 | ```yuescript | 93 | ```yuescript |
| 89 | print "x:", sum(10, 20), "y:", sum(30, 40) | 94 | print "x:", sum(10, 20), "y:", sum(30, 40) |
| 90 | ``` | 95 | ``` |
| 96 | |||
| 91 | <YueDisplay> | 97 | <YueDisplay> |
| 92 | 98 | ||
| 93 | ```yue | 99 | ```yue |
| @@ -104,6 +110,7 @@ Funktionen wandeln die letzte Anweisung im Funktionskörper in ein `return` um. | |||
| 104 | sum = (x, y) -> x + y | 110 | sum = (x, y) -> x + y |
| 105 | print "Die Summe ist ", sum 10, 20 | 111 | print "Die Summe ist ", sum 10, 20 |
| 106 | ``` | 112 | ``` |
| 113 | |||
| 107 | <YueDisplay> | 114 | <YueDisplay> |
| 108 | 115 | ||
| 109 | ```yue | 116 | ```yue |
| @@ -118,6 +125,7 @@ Wenn du explizit zurückgeben willst, verwende `return`: | |||
| 118 | ```yuescript | 125 | ```yuescript |
| 119 | sum = (x, y) -> return x + y | 126 | sum = (x, y) -> return x + y |
| 120 | ``` | 127 | ``` |
| 128 | |||
| 121 | <YueDisplay> | 129 | <YueDisplay> |
| 122 | 130 | ||
| 123 | ```yue | 131 | ```yue |
| @@ -132,6 +140,7 @@ Wie in Lua können Funktionen mehrere Werte zurückgeben. Die letzte Anweisung m | |||
| 132 | mystery = (x, y) -> x + y, x - y | 140 | mystery = (x, y) -> x + y, x - y |
| 133 | a, b = mystery 10, 20 | 141 | a, b = mystery 10, 20 |
| 134 | ``` | 142 | ``` |
| 143 | |||
| 135 | <YueDisplay> | 144 | <YueDisplay> |
| 136 | 145 | ||
| 137 | ```yue | 146 | ```yue |
| @@ -148,6 +157,7 @@ Da es in Lua üblich ist, beim Methodenaufruf ein Objekt als erstes Argument zu | |||
| 148 | ```yuescript | 157 | ```yuescript |
| 149 | func = (num) => @value + num | 158 | func = (num) => @value + num |
| 150 | ``` | 159 | ``` |
| 160 | |||
| 151 | <YueDisplay> | 161 | <YueDisplay> |
| 152 | 162 | ||
| 153 | ```yue | 163 | ```yue |
| @@ -165,6 +175,7 @@ my_function = (name = "etwas", height = 100) -> | |||
| 165 | print "Hallo, ich bin", name | 175 | print "Hallo, ich bin", name |
| 166 | print "Meine Größe ist", height | 176 | print "Meine Größe ist", height |
| 167 | ``` | 177 | ``` |
| 178 | |||
| 168 | <YueDisplay> | 179 | <YueDisplay> |
| 169 | 180 | ||
| 170 | ```yue | 181 | ```yue |
| @@ -181,6 +192,7 @@ Der Ausdruck für den Standardwert wird im Funktionskörper in der Reihenfolge d | |||
| 181 | some_args = (x = 100, y = x + 1000) -> | 192 | some_args = (x = 100, y = x + 1000) -> |
| 182 | print x + y | 193 | print x + y |
| 183 | ``` | 194 | ``` |
| 195 | |||
| 184 | <YueDisplay> | 196 | <YueDisplay> |
| 185 | 197 | ||
| 186 | ```yue | 198 | ```yue |
| @@ -202,6 +214,7 @@ b = x-10 | |||
| 202 | c = x -y | 214 | c = x -y |
| 203 | d = x- z | 215 | d = x- z |
| 204 | ``` | 216 | ``` |
| 217 | |||
| 205 | <YueDisplay> | 218 | <YueDisplay> |
| 206 | 219 | ||
| 207 | ```yue | 220 | ```yue |
| @@ -223,6 +236,7 @@ Steht ein Leerzeichen zwischen Variable und String-Literal, verhält sich der Au | |||
| 223 | x = func"hallo" + 100 | 236 | x = func"hallo" + 100 |
| 224 | y = func "hallo" + 100 | 237 | y = func "hallo" + 100 |
| 225 | ``` | 238 | ``` |
| 239 | |||
| 226 | <YueDisplay> | 240 | <YueDisplay> |
| 227 | 241 | ||
| 228 | ```yue | 242 | ```yue |
| @@ -247,6 +261,7 @@ cool_func 1, 2, | |||
| 247 | 5, 6, | 261 | 5, 6, |
| 248 | 7, 8 | 262 | 7, 8 |
| 249 | ``` | 263 | ``` |
| 264 | |||
| 250 | <YueDisplay> | 265 | <YueDisplay> |
| 251 | 266 | ||
| 252 | ```yue | 267 | ```yue |
| @@ -269,6 +284,7 @@ my_func 5, 6, 7, | |||
| 269 | 9, 1, 2, | 284 | 9, 1, 2, |
| 270 | 5, 4 | 285 | 5, 4 |
| 271 | ``` | 286 | ``` |
| 287 | |||
| 272 | <YueDisplay> | 288 | <YueDisplay> |
| 273 | 289 | ||
| 274 | ```yue | 290 | ```yue |
| @@ -289,6 +305,7 @@ x = [ | |||
| 289 | 8, 9, 10 | 305 | 8, 9, 10 |
| 290 | ] | 306 | ] |
| 291 | ``` | 307 | ``` |
| 308 | |||
| 292 | <YueDisplay> | 309 | <YueDisplay> |
| 293 | 310 | ||
| 294 | ```yue | 311 | ```yue |
| @@ -309,6 +326,7 @@ y = [ my_func 1, 2, 3, | |||
| 309 | 5, 6, 7 | 326 | 5, 6, 7 |
| 310 | ] | 327 | ] |
| 311 | ``` | 328 | ``` |
| 329 | |||
| 312 | <YueDisplay> | 330 | <YueDisplay> |
| 313 | 331 | ||
| 314 | ```yue | 332 | ```yue |
| @@ -335,6 +353,7 @@ if func 1, 2, 3, | |||
| 335 | print "hallo" | 353 | print "hallo" |
| 336 | print "Ich bin innerhalb der if-Bedingung" | 354 | print "Ich bin innerhalb der if-Bedingung" |
| 337 | ``` | 355 | ``` |
| 356 | |||
| 338 | <YueDisplay> | 357 | <YueDisplay> |
| 339 | 358 | ||
| 340 | ```yue | 359 | ```yue |
| @@ -357,8 +376,8 @@ if func 1, 2, 3, | |||
| 357 | 376 | ||
| 358 | YueScript unterstützt jetzt Destructuring von Funktionsparametern, wenn das Argument ein Objekt ist. Es gibt zwei Formen von Destructuring-Tabellenliteralen: | 377 | YueScript unterstützt jetzt Destructuring von Funktionsparametern, wenn das Argument ein Objekt ist. Es gibt zwei Formen von Destructuring-Tabellenliteralen: |
| 359 | 378 | ||
| 360 | * **Geschweifte Klammern/Objektparameter**, die optionale Standardwerte erlauben, wenn Felder fehlen (z. B. `{:a, :b}`, `{a: a1 = 123}`). | 379 | - **Geschweifte Klammern/Objektparameter**, die optionale Standardwerte erlauben, wenn Felder fehlen (z. B. `{:a, :b}`, `{a: a1 = 123}`). |
| 361 | * **Unverpackte einfache Tabellensyntax**, die mit einer Sequenz aus Key-Value- oder Shorthand-Bindings beginnt und so lange läuft, bis ein anderer Ausdruck sie beendet (z. B. `:a, b: b1, :c`). Diese Form extrahiert mehrere Felder aus demselben Objekt. | 380 | - **Unverpackte einfache Tabellensyntax**, die mit einer Sequenz aus Key-Value- oder Shorthand-Bindings beginnt und so lange läuft, bis ein anderer Ausdruck sie beendet (z. B. `:a, b: b1, :c`). Diese Form extrahiert mehrere Felder aus demselben Objekt. |
| 362 | 381 | ||
| 363 | ```yuescript | 382 | ```yuescript |
| 364 | f1 = (:a, :b, :c) -> | 383 | f1 = (:a, :b, :c) -> |
| @@ -372,6 +391,7 @@ f2 = ({a: a1 = 123, :b = 'abc'}, c = {}) -> | |||
| 372 | arg1 = {a: 0} | 391 | arg1 = {a: 0} |
| 373 | f2 arg1, arg2 | 392 | f2 arg1, arg2 |
| 374 | ``` | 393 | ``` |
| 394 | |||
| 375 | <YueDisplay> | 395 | <YueDisplay> |
| 376 | 396 | ||
| 377 | ```yue | 397 | ```yue |
| @@ -401,6 +421,7 @@ findFirstEven = (list): nil -> | |||
| 401 | if sub % 2 == 0 | 421 | if sub % 2 == 0 |
| 402 | return sub | 422 | return sub |
| 403 | ``` | 423 | ``` |
| 424 | |||
| 404 | <YueDisplay> | 425 | <YueDisplay> |
| 405 | 426 | ||
| 406 | ```yue | 427 | ```yue |
| @@ -425,6 +446,7 @@ findFirstEven = (list) -> | |||
| 425 | return sub | 446 | return sub |
| 426 | nil | 447 | nil |
| 427 | ``` | 448 | ``` |
| 449 | |||
| 428 | <YueDisplay> | 450 | <YueDisplay> |
| 429 | 451 | ||
| 430 | ```yue | 452 | ```yue |
| @@ -466,6 +488,7 @@ process = (...args) -> | |||
| 466 | 488 | ||
| 467 | process 1, nil, 3, nil, 5 | 489 | process 1, nil, 3, nil, 5 |
| 468 | ``` | 490 | ``` |
| 491 | |||
| 469 | <YueDisplay> | 492 | <YueDisplay> |
| 470 | 493 | ||
| 471 | ```yue | 494 | ```yue |
diff --git a/doc/docs/de/doc/functions/function-stubs.md b/doc/docs/de/doc/functions/function-stubs.md index 66b3ddb..cd4382a 100644 --- a/doc/docs/de/doc/functions/function-stubs.md +++ b/doc/docs/de/doc/functions/function-stubs.md | |||
| @@ -24,6 +24,7 @@ run_callback my_object.write | |||
| 24 | -- bindet das Objekt in eine neue Funktion ein | 24 | -- bindet das Objekt in eine neue Funktion ein |
| 25 | run_callback my_object\write | 25 | run_callback my_object\write |
| 26 | ``` | 26 | ``` |
| 27 | |||
| 27 | <YueDisplay> | 28 | <YueDisplay> |
| 28 | 29 | ||
| 29 | ```yue | 30 | ```yue |
diff --git a/doc/docs/de/doc/getting-started/usage.md b/doc/docs/de/doc/getting-started/usage.md index f3c9333..2c10406 100644 --- a/doc/docs/de/doc/getting-started/usage.md +++ b/doc/docs/de/doc/getting-started/usage.md | |||
| @@ -4,49 +4,51 @@ | |||
| 4 | 4 | ||
| 5 | YueScript-Modul in Lua verwenden: | 5 | YueScript-Modul in Lua verwenden: |
| 6 | 6 | ||
| 7 | * **Fall 1** | 7 | - **Fall 1** |
| 8 | 8 | ||
| 9 | "your_yuescript_entry.yue" in Lua require'n. | 9 | "your_yuescript_entry.yue" in Lua require'n. |
| 10 | ```Lua | 10 | |
| 11 | require("yue")("your_yuescript_entry") | 11 | ```Lua |
| 12 | ``` | 12 | require("yue")("your_yuescript_entry") |
| 13 | Dieser Code funktioniert weiterhin, wenn du "your_yuescript_entry.yue" im gleichen Pfad zu "your_yuescript_entry.lua" kompilierst. In den restlichen YueScript-Dateien verwendest du einfach normales **require** oder **import**. Die Zeilennummern in Fehlermeldungen werden korrekt behandelt. | 13 | ``` |
| 14 | 14 | ||
| 15 | * **Fall 2** | 15 | Dieser Code funktioniert weiterhin, wenn du "your_yuescript_entry.yue" im gleichen Pfad zu "your_yuescript_entry.lua" kompilierst. In den restlichen YueScript-Dateien verwendest du einfach normales **require** oder **import**. Die Zeilennummern in Fehlermeldungen werden korrekt behandelt. |
| 16 | 16 | ||
| 17 | YueScript-Modul require'n und das Fehlermapping manuell umschreiben. | 17 | - **Fall 2** |
| 18 | 18 | ||
| 19 | ```lua | 19 | YueScript-Modul require'n und das Fehlermapping manuell umschreiben. |
| 20 | local yue = require("yue") | 20 | |
| 21 | yue.insert_loader() | 21 | ```lua |
| 22 | local success, result = xpcall(function() | 22 | local yue = require("yue") |
| 23 | return require("yuescript_module_name") | 23 | yue.insert_loader() |
| 24 | end, function(err) | 24 | local success, result = xpcall(function() |
| 25 | return yue.traceback(err) | 25 | return require("yuescript_module_name") |
| 26 | end) | 26 | end, function(err) |
| 27 | ``` | 27 | return yue.traceback(err) |
| 28 | 28 | end) | |
| 29 | * **Fall 3** | 29 | ``` |
| 30 | 30 | ||
| 31 | Die YueScript-Compilerfunktion in Lua verwenden. | 31 | - **Fall 3** |
| 32 | 32 | ||
| 33 | ```lua | 33 | Die YueScript-Compilerfunktion in Lua verwenden. |
| 34 | local yue = require("yue") | 34 | |
| 35 | local codes, err, globals = yue.to_lua([[ | 35 | ```lua |
| 36 | f = -> | 36 | local yue = require("yue") |
| 37 | print "Hallo Welt" | 37 | local codes, err, globals = yue.to_lua([[ |
| 38 | f! | 38 | f = -> |
| 39 | ]],{ | 39 | print "Hallo Welt" |
| 40 | implicit_return_root = true, | 40 | f! |
| 41 | reserve_line_number = true, | 41 | ]],{ |
| 42 | lint_global = true, | 42 | implicit_return_root = true, |
| 43 | space_over_tab = false, | 43 | reserve_line_number = true, |
| 44 | options = { | 44 | lint_global = true, |
| 45 | target = "5.4", | 45 | space_over_tab = false, |
| 46 | path = "/script" | 46 | options = { |
| 47 | } | 47 | target = "5.4", |
| 48 | }) | 48 | path = "/script" |
| 49 | ``` | 49 | } |
| 50 | }) | ||
| 51 | ``` | ||
| 50 | 52 | ||
| 51 | ## YueScript-Tool | 53 | ## YueScript-Tool |
| 52 | 54 | ||
diff --git a/doc/docs/de/doc/language-basics/attributes.md b/doc/docs/de/doc/language-basics/attributes.md index 0fa3654..8c37d82 100644 --- a/doc/docs/de/doc/language-basics/attributes.md +++ b/doc/docs/de/doc/language-basics/attributes.md | |||
| @@ -6,6 +6,7 @@ Syntax-Unterstützung für Lua-5.4-Attribute. Du kannst weiterhin die Deklaratio | |||
| 6 | const a = 123 | 6 | const a = 123 |
| 7 | close _ = <close>: -> print "Außerhalb des Gültigkeitsbereichs." | 7 | close _ = <close>: -> print "Außerhalb des Gültigkeitsbereichs." |
| 8 | ``` | 8 | ``` |
| 9 | |||
| 9 | <YueDisplay> | 10 | <YueDisplay> |
| 10 | 11 | ||
| 11 | ```yue | 12 | ```yue |
| @@ -21,6 +22,7 @@ Du kannst Destructuring mit als konstant markierten Variablen verwenden. | |||
| 21 | const {:a, :b, c, d} = tb | 22 | const {:a, :b, c, d} = tb |
| 22 | -- a = 1 | 23 | -- a = 1 |
| 23 | ``` | 24 | ``` |
| 25 | |||
| 24 | <YueDisplay> | 26 | <YueDisplay> |
| 25 | 27 | ||
| 26 | ```yue | 28 | ```yue |
| @@ -36,6 +38,7 @@ Du kannst auch eine globale Variable als `const` deklarieren. | |||
| 36 | global const Constant = 123 | 38 | global const Constant = 123 |
| 37 | -- Constant = 1 | 39 | -- Constant = 1 |
| 38 | ``` | 40 | ``` |
| 41 | |||
| 39 | <YueDisplay> | 42 | <YueDisplay> |
| 40 | 43 | ||
| 41 | ```yue | 44 | ```yue |
diff --git a/doc/docs/de/doc/language-basics/comment.md b/doc/docs/de/doc/language-basics/comment.md index dec9bb0..0216162 100644 --- a/doc/docs/de/doc/language-basics/comment.md +++ b/doc/docs/de/doc/language-basics/comment.md | |||
| @@ -12,6 +12,7 @@ Alles okay. | |||
| 12 | 12 | ||
| 13 | func --[[Port]] 3000, --[[IP]] "192.168.1.1" | 13 | func --[[Port]] 3000, --[[IP]] "192.168.1.1" |
| 14 | ``` | 14 | ``` |
| 15 | |||
| 15 | <YueDisplay> | 16 | <YueDisplay> |
| 16 | 17 | ||
| 17 | ```yue | 18 | ```yue |
diff --git a/doc/docs/de/doc/language-basics/literals.md b/doc/docs/de/doc/language-basics/literals.md index 55a5aaa..23e8582 100644 --- a/doc/docs/de/doc/language-basics/literals.md +++ b/doc/docs/de/doc/language-basics/literals.md | |||
| @@ -12,6 +12,7 @@ some_string = "Hier ist ein String | |||
| 12 | -- String-Interpolation gibt es nur in doppelt angeführten Strings. | 12 | -- String-Interpolation gibt es nur in doppelt angeführten Strings. |
| 13 | print "Ich bin mir zu #{math.random! * 100}% sicher." | 13 | print "Ich bin mir zu #{math.random! * 100}% sicher." |
| 14 | ``` | 14 | ``` |
| 15 | |||
| 15 | <YueDisplay> | 16 | <YueDisplay> |
| 16 | 17 | ||
| 17 | ```yue | 18 | ```yue |
| @@ -34,6 +35,7 @@ integer = 1_000_000 | |||
| 34 | hex = 0xEF_BB_BF | 35 | hex = 0xEF_BB_BF |
| 35 | binary = 0B10011 | 36 | binary = 0B10011 |
| 36 | ``` | 37 | ``` |
| 38 | |||
| 37 | <YueDisplay> | 39 | <YueDisplay> |
| 38 | 40 | ||
| 39 | ```yue | 41 | ```yue |
| @@ -55,6 +57,7 @@ str = | | |||
| 55 | - item1 | 57 | - item1 |
| 56 | - #{expr} | 58 | - #{expr} |
| 57 | ``` | 59 | ``` |
| 60 | |||
| 58 | <YueDisplay> | 61 | <YueDisplay> |
| 59 | 62 | ||
| 60 | ```yue | 63 | ```yue |
| @@ -78,6 +81,7 @@ fn = -> | |||
| 78 | bar: baz | 81 | bar: baz |
| 79 | return str | 82 | return str |
| 80 | ``` | 83 | ``` |
| 84 | |||
| 81 | <YueDisplay> | 85 | <YueDisplay> |
| 82 | 86 | ||
| 83 | ```yue | 87 | ```yue |
| @@ -99,6 +103,7 @@ str = | | |||
| 99 | path: "C:\Program Files\App" | 103 | path: "C:\Program Files\App" |
| 100 | note: 'He said: "#{Hello}!"' | 104 | note: 'He said: "#{Hello}!"' |
| 101 | ``` | 105 | ``` |
| 106 | |||
| 102 | <YueDisplay> | 107 | <YueDisplay> |
| 103 | 108 | ||
| 104 | ```yue | 109 | ```yue |
diff --git a/doc/docs/de/doc/language-basics/operator.md b/doc/docs/de/doc/language-basics/operator.md index a7b8c5c..12143d5 100644 --- a/doc/docs/de/doc/language-basics/operator.md +++ b/doc/docs/de/doc/language-basics/operator.md | |||
| @@ -1,11 +1,12 @@ | |||
| 1 | # Operatoren | 1 | # Operatoren |
| 2 | 2 | ||
| 3 | Alle binären und unären Operatoren von Lua sind verfügbar. Zusätzlich ist **!=** ein Alias für **~=**, und entweder **\** oder **::** kann für verkettete Funktionsaufrufe wie `tb\func!` oder `tb::func!` verwendet werden. Außerdem bietet YueScript einige spezielle Operatoren für ausdrucksstärkeren Code. | 3 | Alle binären und unären Operatoren von Lua sind verfügbar. Zusätzlich ist **!=** ein Alias für **~=**, und entweder **\*\* oder **::\*\* kann für verkettete Funktionsaufrufe wie `tb\func!` oder `tb::func!` verwendet werden. Außerdem bietet YueScript einige spezielle Operatoren für ausdrucksstärkeren Code. |
| 4 | 4 | ||
| 5 | ```yuescript | 5 | ```yuescript |
| 6 | tb\func! if tb ~= nil | 6 | tb\func! if tb ~= nil |
| 7 | tb::func! if tb != nil | 7 | tb::func! if tb != nil |
| 8 | ``` | 8 | ``` |
| 9 | |||
| 9 | <YueDisplay> | 10 | <YueDisplay> |
| 10 | 11 | ||
| 11 | ```yue | 12 | ```yue |
| @@ -27,6 +28,7 @@ a = 5 | |||
| 27 | print 1 <= a <= 10 | 28 | print 1 <= a <= 10 |
| 28 | -- Ausgabe: true | 29 | -- Ausgabe: true |
| 29 | ``` | 30 | ``` |
| 31 | |||
| 30 | <YueDisplay> | 32 | <YueDisplay> |
| 31 | 33 | ||
| 32 | ```yue | 34 | ```yue |
| @@ -64,6 +66,7 @@ print v(1) > v(2) <= v(3) | |||
| 64 | false | 66 | false |
| 65 | ]] | 67 | ]] |
| 66 | ``` | 68 | ``` |
| 69 | |||
| 67 | <YueDisplay> | 70 | <YueDisplay> |
| 68 | 71 | ||
| 69 | ```yue | 72 | ```yue |
| @@ -101,6 +104,7 @@ Der Operator **[] =** wird verwendet, um Werte an Tabellen anzuhängen. | |||
| 101 | tab = [] | 104 | tab = [] |
| 102 | tab[] = "Wert" | 105 | tab[] = "Wert" |
| 103 | ``` | 106 | ``` |
| 107 | |||
| 104 | <YueDisplay> | 108 | <YueDisplay> |
| 105 | 109 | ||
| 106 | ```yue | 110 | ```yue |
| @@ -118,6 +122,7 @@ tbB = [4, 5, 6] | |||
| 118 | tbA[] = ...tbB | 122 | tbA[] = ...tbB |
| 119 | -- tbA ist jetzt [1, 2, 3, 4, 5, 6] | 123 | -- tbA ist jetzt [1, 2, 3, 4, 5, 6] |
| 120 | ``` | 124 | ``` |
| 125 | |||
| 121 | <YueDisplay> | 126 | <YueDisplay> |
| 122 | 127 | ||
| 123 | ```yue | 128 | ```yue |
| @@ -149,6 +154,7 @@ a = {1, 2, 3, x: 1} | |||
| 149 | b = {4, 5, y: 1} | 154 | b = {4, 5, y: 1} |
| 150 | merge = {...a, ...b} | 155 | merge = {...a, ...b} |
| 151 | ``` | 156 | ``` |
| 157 | |||
| 152 | <YueDisplay> | 158 | <YueDisplay> |
| 153 | 159 | ||
| 154 | ```yue | 160 | ```yue |
| @@ -179,6 +185,7 @@ last = data.items[#] | |||
| 179 | second_last = data.items[#-1] | 185 | second_last = data.items[#-1] |
| 180 | data.items[#] = 1 | 186 | data.items[#] = 1 |
| 181 | ``` | 187 | ``` |
| 188 | |||
| 182 | <YueDisplay> | 189 | <YueDisplay> |
| 183 | 190 | ||
| 184 | ```yue | 191 | ```yue |
| @@ -212,6 +219,7 @@ print d.value | |||
| 212 | 219 | ||
| 213 | close _ = <close>: -> print "Außerhalb des Gültigkeitsbereichs" | 220 | close _ = <close>: -> print "Außerhalb des Gültigkeitsbereichs" |
| 214 | ``` | 221 | ``` |
| 222 | |||
| 215 | <YueDisplay> | 223 | <YueDisplay> |
| 216 | 224 | ||
| 217 | ```yue | 225 | ```yue |
| @@ -245,6 +253,7 @@ print tb.value | |||
| 245 | tb.<> = __index: {item: "hallo"} | 253 | tb.<> = __index: {item: "hallo"} |
| 246 | print tb.item | 254 | print tb.item |
| 247 | ``` | 255 | ``` |
| 256 | |||
| 248 | <YueDisplay> | 257 | <YueDisplay> |
| 249 | 258 | ||
| 250 | ```yue | 259 | ```yue |
| @@ -266,6 +275,7 @@ Destrukturiere Metatable mit Metamethoden-Schlüssel, der von **<>** umschlossen | |||
| 266 | {item, :new, :<close>, <index>: getter} = tb | 275 | {item, :new, :<close>, <index>: getter} = tb |
| 267 | print item, new, close, getter | 276 | print item, new, close, getter |
| 268 | ``` | 277 | ``` |
| 278 | |||
| 269 | <YueDisplay> | 279 | <YueDisplay> |
| 270 | 280 | ||
| 271 | ```yue | 281 | ```yue |
| @@ -293,6 +303,7 @@ with? io.open "test.txt", "w" | |||
| 293 | \write "hello" | 303 | \write "hello" |
| 294 | \close! | 304 | \close! |
| 295 | ``` | 305 | ``` |
| 306 | |||
| 296 | <YueDisplay> | 307 | <YueDisplay> |
| 297 | 308 | ||
| 298 | ```yue | 309 | ```yue |
| @@ -329,6 +340,7 @@ readFile "example.txt" | |||
| 329 | |> render | 340 | |> render |
| 330 | 341 | ||
| 331 | ``` | 342 | ``` |
| 343 | |||
| 332 | <YueDisplay> | 344 | <YueDisplay> |
| 333 | 345 | ||
| 334 | ```yue | 346 | ```yue |
| @@ -357,6 +369,7 @@ func a ?? {} | |||
| 357 | 369 | ||
| 358 | a ??= false | 370 | a ??= false |
| 359 | ``` | 371 | ``` |
| 372 | |||
| 360 | <YueDisplay> | 373 | <YueDisplay> |
| 361 | 374 | ||
| 362 | ```yue | 375 | ```yue |
| @@ -414,6 +427,7 @@ tb = | |||
| 414 | tb: { } | 427 | tb: { } |
| 415 | 428 | ||
| 416 | ``` | 429 | ``` |
| 430 | |||
| 417 | <YueDisplay> | 431 | <YueDisplay> |
| 418 | 432 | ||
| 419 | ```yue | 433 | ```yue |
diff --git a/doc/docs/de/doc/language-basics/whitespace.md b/doc/docs/de/doc/language-basics/whitespace.md index 9d5889d..0915692 100644 --- a/doc/docs/de/doc/language-basics/whitespace.md +++ b/doc/docs/de/doc/language-basics/whitespace.md | |||
| @@ -9,6 +9,7 @@ Eine Anweisung endet normalerweise an einem Zeilenumbruch. Du kannst auch ein Se | |||
| 9 | ```yuescript | 9 | ```yuescript |
| 10 | a = 1; b = 2; print a + b | 10 | a = 1; b = 2; print a + b |
| 11 | ``` | 11 | ``` |
| 12 | |||
| 12 | <YueDisplay> | 13 | <YueDisplay> |
| 13 | 14 | ||
| 14 | ```yue | 15 | ```yue |
| @@ -29,6 +30,7 @@ Rx.Observable | |||
| 29 | \map (value) -> value .. '!' | 30 | \map (value) -> value .. '!' |
| 30 | \subscribe print | 31 | \subscribe print |
| 31 | ``` | 32 | ``` |
| 33 | |||
| 32 | <YueDisplay> | 34 | <YueDisplay> |
| 33 | 35 | ||
| 34 | ```yue | 36 | ```yue |
diff --git a/doc/docs/de/doc/objects/object-oriented-programming.md b/doc/docs/de/doc/objects/object-oriented-programming.md index 1c116a3..706cfda 100644 --- a/doc/docs/de/doc/objects/object-oriented-programming.md +++ b/doc/docs/de/doc/objects/object-oriented-programming.md | |||
| @@ -15,6 +15,7 @@ class Inventory | |||
| 15 | else | 15 | else |
| 16 | @items[name] = 1 | 16 | @items[name] = 1 |
| 17 | ``` | 17 | ``` |
| 18 | |||
| 18 | <YueDisplay> | 19 | <YueDisplay> |
| 19 | 20 | ||
| 20 | ```yue | 21 | ```yue |
| @@ -46,6 +47,7 @@ inv = Inventory! | |||
| 46 | inv\add_item "T-Shirt" | 47 | inv\add_item "T-Shirt" |
| 47 | inv\add_item "Hose" | 48 | inv\add_item "Hose" |
| 48 | ``` | 49 | ``` |
| 50 | |||
| 49 | <YueDisplay> | 51 | <YueDisplay> |
| 50 | 52 | ||
| 51 | ```yue | 53 | ```yue |
| @@ -77,6 +79,7 @@ b\give_item "Hemd" | |||
| 77 | -- gibt sowohl Hose als auch Hemd aus | 79 | -- gibt sowohl Hose als auch Hemd aus |
| 78 | print item for item in *a.clothes | 80 | print item for item in *a.clothes |
| 79 | ``` | 81 | ``` |
| 82 | |||
| 80 | <YueDisplay> | 83 | <YueDisplay> |
| 81 | 84 | ||
| 82 | ```yue | 85 | ```yue |
| @@ -104,6 +107,7 @@ class Person | |||
| 104 | new: => | 107 | new: => |
| 105 | @clothes = [] | 108 | @clothes = [] |
| 106 | ``` | 109 | ``` |
| 110 | |||
| 107 | <YueDisplay> | 111 | <YueDisplay> |
| 108 | 112 | ||
| 109 | ```yue | 113 | ```yue |
| @@ -125,6 +129,7 @@ class BackPack extends Inventory | |||
| 125 | if #@items > size then error "Rucksack ist voll" | 129 | if #@items > size then error "Rucksack ist voll" |
| 126 | super name | 130 | super name |
| 127 | ``` | 131 | ``` |
| 132 | |||
| 128 | <YueDisplay> | 133 | <YueDisplay> |
| 129 | 134 | ||
| 130 | ```yue | 135 | ```yue |
| @@ -151,6 +156,7 @@ class Shelf | |||
| 151 | -- gibt aus: Shelf wurde von Cupboard geerbt | 156 | -- gibt aus: Shelf wurde von Cupboard geerbt |
| 152 | class Cupboard extends Shelf | 157 | class Cupboard extends Shelf |
| 153 | ``` | 158 | ``` |
| 159 | |||
| 154 | <YueDisplay> | 160 | <YueDisplay> |
| 155 | 161 | ||
| 156 | ```yue | 162 | ```yue |
| @@ -189,6 +195,7 @@ class MyClass extends ParentClass | |||
| 189 | -- super als Wert entspricht der Elternklasse: | 195 | -- super als Wert entspricht der Elternklasse: |
| 190 | assert super == ParentClass | 196 | assert super == ParentClass |
| 191 | ``` | 197 | ``` |
| 198 | |||
| 192 | <YueDisplay> | 199 | <YueDisplay> |
| 193 | 200 | ||
| 194 | ```yue | 201 | ```yue |
| @@ -217,6 +224,7 @@ assert b.__class == BackPack | |||
| 217 | 224 | ||
| 218 | print BackPack.size -- gibt 10 aus | 225 | print BackPack.size -- gibt 10 aus |
| 219 | ``` | 226 | ``` |
| 227 | |||
| 220 | <YueDisplay> | 228 | <YueDisplay> |
| 221 | 229 | ||
| 222 | ```yue | 230 | ```yue |
| @@ -247,6 +255,7 @@ Der Name der Klasse, wie sie deklariert wurde, wird im Feld `__name` gespeichert | |||
| 247 | ```yuescript | 255 | ```yuescript |
| 248 | print BackPack.__name -- gibt Backpack aus | 256 | print BackPack.__name -- gibt Backpack aus |
| 249 | ``` | 257 | ``` |
| 258 | |||
| 250 | <YueDisplay> | 259 | <YueDisplay> |
| 251 | 260 | ||
| 252 | ```yue | 261 | ```yue |
| @@ -272,6 +281,7 @@ Things\some_func! | |||
| 272 | -- Klassenvariablen in Instanzen nicht sichtbar | 281 | -- Klassenvariablen in Instanzen nicht sichtbar |
| 273 | assert Things().some_func == nil | 282 | assert Things().some_func == nil |
| 274 | ``` | 283 | ``` |
| 284 | |||
| 275 | <YueDisplay> | 285 | <YueDisplay> |
| 276 | 286 | ||
| 277 | ```yue | 287 | ```yue |
| @@ -300,6 +310,7 @@ Counter! | |||
| 300 | 310 | ||
| 301 | print Counter.count -- gibt 2 aus | 311 | print Counter.count -- gibt 2 aus |
| 302 | ``` | 312 | ``` |
| 313 | |||
| 303 | <YueDisplay> | 314 | <YueDisplay> |
| 304 | 315 | ||
| 305 | ```yue | 316 | ```yue |
| @@ -322,6 +333,7 @@ Die Aufrufsemantik von `@@` ist ähnlich wie bei `@`. Wenn du einen `@@`-Namen a | |||
| 322 | ```yuescript | 333 | ```yuescript |
| 323 | @@hello 1,2,3,4 | 334 | @@hello 1,2,3,4 |
| 324 | ``` | 335 | ``` |
| 336 | |||
| 325 | <YueDisplay> | 337 | <YueDisplay> |
| 326 | 338 | ||
| 327 | ```yue | 339 | ```yue |
| @@ -340,6 +352,7 @@ Hier ist eine alternative Möglichkeit, eine Klassenvariable zu erstellen: | |||
| 340 | class Things | 352 | class Things |
| 341 | @class_var = "Hallo Welt" | 353 | @class_var = "Hallo Welt" |
| 342 | ``` | 354 | ``` |
| 355 | |||
| 343 | <YueDisplay> | 356 | <YueDisplay> |
| 344 | 357 | ||
| 345 | ```yue | 358 | ```yue |
| @@ -361,6 +374,7 @@ class MoreThings | |||
| 361 | some_method: => | 374 | some_method: => |
| 362 | log "Hallo Welt: " .. secret | 375 | log "Hallo Welt: " .. secret |
| 363 | ``` | 376 | ``` |
| 377 | |||
| 364 | <YueDisplay> | 378 | <YueDisplay> |
| 365 | 379 | ||
| 366 | ```yue | 380 | ```yue |
| @@ -384,6 +398,7 @@ Wenn sie alleine verwendet werden, sind sie Aliase für `self` und `self.__class | |||
| 384 | assert @ == self | 398 | assert @ == self |
| 385 | assert @@ == self.__class | 399 | assert @@ == self.__class |
| 386 | ``` | 400 | ``` |
| 401 | |||
| 387 | <YueDisplay> | 402 | <YueDisplay> |
| 388 | 403 | ||
| 389 | ```yue | 404 | ```yue |
| @@ -398,6 +413,7 @@ Zum Beispiel kannst du mit `@@` in einer Instanzmethode schnell eine neue Instan | |||
| 398 | ```yuescript | 413 | ```yuescript |
| 399 | some_instance_method = (...) => @@ ... | 414 | some_instance_method = (...) => @@ ... |
| 400 | ``` | 415 | ``` |
| 416 | |||
| 401 | <YueDisplay> | 417 | <YueDisplay> |
| 402 | 418 | ||
| 403 | ```yue | 419 | ```yue |
| @@ -423,6 +439,7 @@ class Something | |||
| 423 | @@biz = biz | 439 | @@biz = biz |
| 424 | @@baz = baz | 440 | @@baz = baz |
| 425 | ``` | 441 | ``` |
| 442 | |||
| 426 | <YueDisplay> | 443 | <YueDisplay> |
| 427 | 444 | ||
| 428 | ```yue | 445 | ```yue |
| @@ -448,6 +465,7 @@ new = (@fieldA, @fieldB) => @ | |||
| 448 | obj = new {}, 123, "abc" | 465 | obj = new {}, 123, "abc" |
| 449 | print obj | 466 | print obj |
| 450 | ``` | 467 | ``` |
| 468 | |||
| 451 | <YueDisplay> | 469 | <YueDisplay> |
| 452 | 470 | ||
| 453 | ```yue | 471 | ```yue |
| @@ -467,6 +485,7 @@ x = class Bucket | |||
| 467 | drops: 0 | 485 | drops: 0 |
| 468 | add_drop: => @drops += 1 | 486 | add_drop: => @drops += 1 |
| 469 | ``` | 487 | ``` |
| 488 | |||
| 470 | <YueDisplay> | 489 | <YueDisplay> |
| 471 | 490 | ||
| 472 | ```yue | 491 | ```yue |
| @@ -487,6 +506,7 @@ BigBucket = class extends Bucket | |||
| 487 | 506 | ||
| 488 | assert Bucket.__name == "BigBucket" | 507 | assert Bucket.__name == "BigBucket" |
| 489 | ``` | 508 | ``` |
| 509 | |||
| 490 | <YueDisplay> | 510 | <YueDisplay> |
| 491 | 511 | ||
| 492 | ```yue | 512 | ```yue |
| @@ -503,6 +523,7 @@ Du kannst sogar den Körper weglassen und eine leere anonyme Klasse schreiben: | |||
| 503 | ```yuescript | 523 | ```yuescript |
| 504 | x = class | 524 | x = class |
| 505 | ``` | 525 | ``` |
| 526 | |||
| 506 | <YueDisplay> | 527 | <YueDisplay> |
| 507 | 528 | ||
| 508 | ```yue | 529 | ```yue |
| @@ -532,6 +553,7 @@ y\func! | |||
| 532 | 553 | ||
| 533 | assert y.__class.__parent ~= X -- X ist nicht die Elternklasse von Y | 554 | assert y.__class.__parent ~= X -- X ist nicht die Elternklasse von Y |
| 534 | ``` | 555 | ``` |
| 556 | |||
| 535 | <YueDisplay> | 557 | <YueDisplay> |
| 536 | 558 | ||
| 537 | ```yue | 559 | ```yue |
diff --git a/doc/docs/de/doc/objects/with-statement.md b/doc/docs/de/doc/objects/with-statement.md index 446f837..adeeda6 100644 --- a/doc/docs/de/doc/objects/with-statement.md +++ b/doc/docs/de/doc/objects/with-statement.md | |||
| @@ -15,6 +15,7 @@ with Person! | |||
| 15 | \save! | 15 | \save! |
| 16 | print .name | 16 | print .name |
| 17 | ``` | 17 | ``` |
| 18 | |||
| 18 | <YueDisplay> | 19 | <YueDisplay> |
| 19 | 20 | ||
| 20 | ```yue | 21 | ```yue |
| @@ -33,6 +34,7 @@ Das `with`-Statement kann auch als Ausdruck verwendet werden und gibt den Wert z | |||
| 33 | file = with File "Lieblingsessen.txt" | 34 | file = with File "Lieblingsessen.txt" |
| 34 | \set_encoding "utf8" | 35 | \set_encoding "utf8" |
| 35 | ``` | 36 | ``` |
| 37 | |||
| 36 | <YueDisplay> | 38 | <YueDisplay> |
| 37 | 39 | ||
| 38 | ```yue | 40 | ```yue |
| @@ -52,6 +54,7 @@ create_person = (name, relatives) -> | |||
| 52 | 54 | ||
| 53 | me = create_person "Leaf", [dad, mother, sister] | 55 | me = create_person "Leaf", [dad, mother, sister] |
| 54 | ``` | 56 | ``` |
| 57 | |||
| 55 | <YueDisplay> | 58 | <YueDisplay> |
| 56 | 59 | ||
| 57 | ```yue | 60 | ```yue |
| @@ -74,6 +77,7 @@ with str := "Hallo" | |||
| 74 | print "Original:", str | 77 | print "Original:", str |
| 75 | print "Großbuchstaben:", \upper! | 78 | print "Großbuchstaben:", \upper! |
| 76 | ``` | 79 | ``` |
| 80 | |||
| 77 | <YueDisplay> | 81 | <YueDisplay> |
| 78 | 82 | ||
| 79 | ```yue | 83 | ```yue |
| @@ -95,6 +99,7 @@ with tb | |||
| 95 | ["key-name"] = value | 99 | ["key-name"] = value |
| 96 | [] = "abc" -- an "tb" anhängen | 100 | [] = "abc" -- an "tb" anhängen |
| 97 | ``` | 101 | ``` |
| 102 | |||
| 98 | <YueDisplay> | 103 | <YueDisplay> |
| 99 | 104 | ||
| 100 | ```yue | 105 | ```yue |
| @@ -115,6 +120,7 @@ with tb | |||
| 115 | with? obj | 120 | with? obj |
| 116 | print obj.name | 121 | print obj.name |
| 117 | ``` | 122 | ``` |
| 123 | |||
| 118 | <YueDisplay> | 124 | <YueDisplay> |
| 119 | 125 | ||
| 120 | ```yue | 126 | ```yue |
diff --git a/doc/docs/de/doc/reference/the-yuescript-library.md b/doc/docs/de/doc/reference/the-yuescript-library.md index 1838ced..0c371bf 100644 --- a/doc/docs/de/doc/reference/the-yuescript-library.md +++ b/doc/docs/de/doc/reference/the-yuescript-library.md | |||
| @@ -17,6 +17,7 @@ Die YueScript-Sprachbibliothek. | |||
| 17 | Die YueScript-Version. | 17 | Die YueScript-Version. |
| 18 | 18 | ||
| 19 | **Signatur:** | 19 | **Signatur:** |
| 20 | |||
| 20 | ```lua | 21 | ```lua |
| 21 | version: string | 22 | version: string |
| 22 | ``` | 23 | ``` |
| @@ -30,6 +31,7 @@ version: string | |||
| 30 | Der Dateitrennzeichen-String der aktuellen Plattform. | 31 | Der Dateitrennzeichen-String der aktuellen Plattform. |
| 31 | 32 | ||
| 32 | **Signatur:** | 33 | **Signatur:** |
| 34 | |||
| 33 | ```lua | 35 | ```lua |
| 34 | dirsep: string | 36 | dirsep: string |
| 35 | ``` | 37 | ``` |
| @@ -43,6 +45,7 @@ dirsep: string | |||
| 43 | Der Cache für kompilierten Modulcode. | 45 | Der Cache für kompilierten Modulcode. |
| 44 | 46 | ||
| 45 | **Signatur:** | 47 | **Signatur:** |
| 48 | |||
| 46 | ```lua | 49 | ```lua |
| 47 | yue_compiled: {string: string} | 50 | yue_compiled: {string: string} |
| 48 | ``` | 51 | ``` |
| @@ -56,6 +59,7 @@ yue_compiled: {string: string} | |||
| 56 | Die YueScript-Compilerfunktion. Sie kompiliert YueScript-Code zu Lua-Code. | 59 | Die YueScript-Compilerfunktion. Sie kompiliert YueScript-Code zu Lua-Code. |
| 57 | 60 | ||
| 58 | **Signatur:** | 61 | **Signatur:** |
| 62 | |||
| 59 | ```lua | 63 | ```lua |
| 60 | to_lua: function(code: string, config?: Config): | 64 | to_lua: function(code: string, config?: Config): |
| 61 | --[[codes]] string | nil, | 65 | --[[codes]] string | nil, |
| @@ -65,17 +69,17 @@ to_lua: function(code: string, config?: Config): | |||
| 65 | 69 | ||
| 66 | **Parameter:** | 70 | **Parameter:** |
| 67 | 71 | ||
| 68 | | Parameter | Typ | Beschreibung | | 72 | | Parameter | Typ | Beschreibung | |
| 69 | | --- | --- | --- | | 73 | | --------- | ------ | --------------------------------- | |
| 70 | | code | string | Der YueScript-Code. | | 74 | | code | string | Der YueScript-Code. | |
| 71 | | config | Config | [Optional] Die Compiler-Optionen. | | 75 | | config | Config | [Optional] Die Compiler-Optionen. | |
| 72 | 76 | ||
| 73 | **Rückgabe:** | 77 | **Rückgabe:** |
| 74 | 78 | ||
| 75 | | Rückgabetyp | Beschreibung | | 79 | | Rückgabetyp | Beschreibung | |
| 76 | | --- | --- | | 80 | | ----------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | |
| 77 | | string \| nil | Der kompilierte Lua-Code oder `nil`, falls die Kompilierung fehlgeschlagen ist. | | 81 | | string \| nil | Der kompilierte Lua-Code oder `nil`, falls die Kompilierung fehlgeschlagen ist. | |
| 78 | | string \| nil | Die Fehlermeldung oder `nil`, falls die Kompilierung erfolgreich war. | | 82 | | string \| nil | Die Fehlermeldung oder `nil`, falls die Kompilierung erfolgreich war. | |
| 79 | | {{string, integer, integer}} \| nil | Die globalen Variablen im Code (mit Name, Zeile und Spalte) oder `nil`, wenn die Compiler-Option `lint_global` false ist. | | 83 | | {{string, integer, integer}} \| nil | Die globalen Variablen im Code (mit Name, Zeile und Spalte) oder `nil`, wenn die Compiler-Option `lint_global` false ist. | |
| 80 | 84 | ||
| 81 | ### file_exist | 85 | ### file_exist |
| @@ -87,21 +91,22 @@ to_lua: function(code: string, config?: Config): | |||
| 87 | Prüft, ob eine Quelldatei existiert. Kann überschrieben werden, um das Verhalten anzupassen. | 91 | Prüft, ob eine Quelldatei existiert. Kann überschrieben werden, um das Verhalten anzupassen. |
| 88 | 92 | ||
| 89 | **Signatur:** | 93 | **Signatur:** |
| 94 | |||
| 90 | ```lua | 95 | ```lua |
| 91 | file_exist: function(filename: string): boolean | 96 | file_exist: function(filename: string): boolean |
| 92 | ``` | 97 | ``` |
| 93 | 98 | ||
| 94 | **Parameter:** | 99 | **Parameter:** |
| 95 | 100 | ||
| 96 | | Parameter | Typ | Beschreibung | | 101 | | Parameter | Typ | Beschreibung | |
| 97 | | --- | --- | --- | | 102 | | --------- | ------ | -------------- | |
| 98 | | filename | string | Der Dateiname. | | 103 | | filename | string | Der Dateiname. | |
| 99 | 104 | ||
| 100 | **Rückgabe:** | 105 | **Rückgabe:** |
| 101 | 106 | ||
| 102 | | Rückgabetyp | Beschreibung | | 107 | | Rückgabetyp | Beschreibung | |
| 103 | | --- | --- | | 108 | | ----------- | ----------------------- | |
| 104 | | boolean | Ob die Datei existiert. | | 109 | | boolean | Ob die Datei existiert. | |
| 105 | 110 | ||
| 106 | ### read_file | 111 | ### read_file |
| 107 | 112 | ||
| @@ -112,21 +117,22 @@ file_exist: function(filename: string): boolean | |||
| 112 | Liest eine Quelldatei. Kann überschrieben werden, um das Verhalten anzupassen. | 117 | Liest eine Quelldatei. Kann überschrieben werden, um das Verhalten anzupassen. |
| 113 | 118 | ||
| 114 | **Signatur:** | 119 | **Signatur:** |
| 120 | |||
| 115 | ```lua | 121 | ```lua |
| 116 | read_file: function(filename: string): string | 122 | read_file: function(filename: string): string |
| 117 | ``` | 123 | ``` |
| 118 | 124 | ||
| 119 | **Parameter:** | 125 | **Parameter:** |
| 120 | 126 | ||
| 121 | | Parameter | Typ | Beschreibung | | 127 | | Parameter | Typ | Beschreibung | |
| 122 | | --- | --- | --- | | 128 | | --------- | ------ | -------------- | |
| 123 | | filename | string | Der Dateiname. | | 129 | | filename | string | Der Dateiname. | |
| 124 | 130 | ||
| 125 | **Rückgabe:** | 131 | **Rückgabe:** |
| 126 | 132 | ||
| 127 | | Rückgabetyp | Beschreibung | | 133 | | Rückgabetyp | Beschreibung | |
| 128 | | --- | --- | | 134 | | ----------- | ---------------- | |
| 129 | | string | Der Dateiinhalt. | | 135 | | string | Der Dateiinhalt. | |
| 130 | 136 | ||
| 131 | ### insert_loader | 137 | ### insert_loader |
| 132 | 138 | ||
| @@ -137,21 +143,22 @@ read_file: function(filename: string): string | |||
| 137 | Fügt den YueScript-Loader in die Package-Loader (Searcher) ein. | 143 | Fügt den YueScript-Loader in die Package-Loader (Searcher) ein. |
| 138 | 144 | ||
| 139 | **Signatur:** | 145 | **Signatur:** |
| 146 | |||
| 140 | ```lua | 147 | ```lua |
| 141 | insert_loader: function(pos?: integer): boolean | 148 | insert_loader: function(pos?: integer): boolean |
| 142 | ``` | 149 | ``` |
| 143 | 150 | ||
| 144 | **Parameter:** | 151 | **Parameter:** |
| 145 | 152 | ||
| 146 | | Parameter | Typ | Beschreibung | | 153 | | Parameter | Typ | Beschreibung | |
| 147 | | --- | --- | --- | | 154 | | --------- | ------- | ---------------------------------------------------------------------- | |
| 148 | | pos | integer | [Optional] Position, an der der Loader eingefügt wird. Standard ist 3. | | 155 | | pos | integer | [Optional] Position, an der der Loader eingefügt wird. Standard ist 3. | |
| 149 | 156 | ||
| 150 | **Rückgabe:** | 157 | **Rückgabe:** |
| 151 | 158 | ||
| 152 | | Rückgabetyp | Beschreibung | | 159 | | Rückgabetyp | Beschreibung | |
| 153 | | --- | --- | | 160 | | ----------- | ------------------------------------------------------------------------------------ | |
| 154 | | boolean | Ob der Loader erfolgreich eingefügt wurde. Scheitert, wenn er bereits eingefügt ist. | | 161 | | boolean | Ob der Loader erfolgreich eingefügt wurde. Scheitert, wenn er bereits eingefügt ist. | |
| 155 | 162 | ||
| 156 | ### remove_loader | 163 | ### remove_loader |
| 157 | 164 | ||
| @@ -162,15 +169,16 @@ insert_loader: function(pos?: integer): boolean | |||
| 162 | Entfernt den YueScript-Loader aus den Package-Loadern (Searchern). | 169 | Entfernt den YueScript-Loader aus den Package-Loadern (Searchern). |
| 163 | 170 | ||
| 164 | **Signatur:** | 171 | **Signatur:** |
| 172 | |||
| 165 | ```lua | 173 | ```lua |
| 166 | remove_loader: function(): boolean | 174 | remove_loader: function(): boolean |
| 167 | ``` | 175 | ``` |
| 168 | 176 | ||
| 169 | **Rückgabe:** | 177 | **Rückgabe:** |
| 170 | 178 | ||
| 171 | | Rückgabetyp | Beschreibung | | 179 | | Rückgabetyp | Beschreibung | |
| 172 | | --- | --- | | 180 | | ----------- | --------------------------------------------------------------------------------- | |
| 173 | | boolean | Ob der Loader erfolgreich entfernt wurde. Scheitert, wenn er nicht eingefügt ist. | | 181 | | boolean | Ob der Loader erfolgreich entfernt wurde. Scheitert, wenn er nicht eingefügt ist. | |
| 174 | 182 | ||
| 175 | ### loadstring | 183 | ### loadstring |
| 176 | 184 | ||
| @@ -181,6 +189,7 @@ remove_loader: function(): boolean | |||
| 181 | Lädt YueScript-Code aus einem String in eine Funktion. | 189 | Lädt YueScript-Code aus einem String in eine Funktion. |
| 182 | 190 | ||
| 183 | **Signatur:** | 191 | **Signatur:** |
| 192 | |||
| 184 | ```lua | 193 | ```lua |
| 185 | loadstring: function(input: string, chunkname: string, env: table, config?: Config): | 194 | loadstring: function(input: string, chunkname: string, env: table, config?: Config): |
| 186 | --[[loaded function]] nil | function(...: any): (any...), | 195 | --[[loaded function]] nil | function(...: any): (any...), |
| @@ -189,19 +198,19 @@ loadstring: function(input: string, chunkname: string, env: table, config?: Conf | |||
| 189 | 198 | ||
| 190 | **Parameter:** | 199 | **Parameter:** |
| 191 | 200 | ||
| 192 | | Parameter | Typ | Beschreibung | | 201 | | Parameter | Typ | Beschreibung | |
| 193 | | --- | --- | --- | | 202 | | --------- | ------ | --------------------------------- | |
| 194 | | input | string | Der YueScript-Code. | | 203 | | input | string | Der YueScript-Code. | |
| 195 | | chunkname | string | Der Name des Code-Chunks. | | 204 | | chunkname | string | Der Name des Code-Chunks. | |
| 196 | | env | table | Die Environment-Tabelle. | | 205 | | env | table | Die Environment-Tabelle. | |
| 197 | | config | Config | [Optional] Die Compiler-Optionen. | | 206 | | config | Config | [Optional] Die Compiler-Optionen. | |
| 198 | 207 | ||
| 199 | **Rückgabe:** | 208 | **Rückgabe:** |
| 200 | 209 | ||
| 201 | | Rückgabetyp | Beschreibung | | 210 | | Rückgabetyp | Beschreibung | |
| 202 | | --- | --- | | 211 | | --------------- | --------------------------------------------------------------------- | |
| 203 | | function \| nil | Die geladene Funktion oder `nil`, falls das Laden fehlgeschlagen ist. | | 212 | | function \| nil | Die geladene Funktion oder `nil`, falls das Laden fehlgeschlagen ist. | |
| 204 | | string \| nil | Die Fehlermeldung oder `nil`, falls das Laden erfolgreich war. | | 213 | | string \| nil | Die Fehlermeldung oder `nil`, falls das Laden erfolgreich war. | |
| 205 | 214 | ||
| 206 | ### loadstring | 215 | ### loadstring |
| 207 | 216 | ||
| @@ -212,6 +221,7 @@ loadstring: function(input: string, chunkname: string, env: table, config?: Conf | |||
| 212 | Lädt YueScript-Code aus einem String in eine Funktion. | 221 | Lädt YueScript-Code aus einem String in eine Funktion. |
| 213 | 222 | ||
| 214 | **Signatur:** | 223 | **Signatur:** |
| 224 | |||
| 215 | ```lua | 225 | ```lua |
| 216 | loadstring: function(input: string, chunkname: string, config?: Config): | 226 | loadstring: function(input: string, chunkname: string, config?: Config): |
| 217 | --[[loaded function]] nil | function(...: any): (any...), | 227 | --[[loaded function]] nil | function(...: any): (any...), |
| @@ -220,18 +230,18 @@ loadstring: function(input: string, chunkname: string, config?: Config): | |||
| 220 | 230 | ||
| 221 | **Parameter:** | 231 | **Parameter:** |
| 222 | 232 | ||
| 223 | | Parameter | Typ | Beschreibung | | 233 | | Parameter | Typ | Beschreibung | |
| 224 | | --- | --- | --- | | 234 | | --------- | ------ | --------------------------------- | |
| 225 | | input | string | Der YueScript-Code. | | 235 | | input | string | Der YueScript-Code. | |
| 226 | | chunkname | string | Der Name des Code-Chunks. | | 236 | | chunkname | string | Der Name des Code-Chunks. | |
| 227 | | config | Config | [Optional] Die Compiler-Optionen. | | 237 | | config | Config | [Optional] Die Compiler-Optionen. | |
| 228 | 238 | ||
| 229 | **Rückgabe:** | 239 | **Rückgabe:** |
| 230 | 240 | ||
| 231 | | Rückgabetyp | Beschreibung | | 241 | | Rückgabetyp | Beschreibung | |
| 232 | | --- | --- | | 242 | | --------------- | --------------------------------------------------------------------- | |
| 233 | | function \| nil | Die geladene Funktion oder `nil`, falls das Laden fehlgeschlagen ist. | | 243 | | function \| nil | Die geladene Funktion oder `nil`, falls das Laden fehlgeschlagen ist. | |
| 234 | | string \| nil | Die Fehlermeldung oder `nil`, falls das Laden erfolgreich war. | | 244 | | string \| nil | Die Fehlermeldung oder `nil`, falls das Laden erfolgreich war. | |
| 235 | 245 | ||
| 236 | ### loadstring | 246 | ### loadstring |
| 237 | 247 | ||
| @@ -242,6 +252,7 @@ loadstring: function(input: string, chunkname: string, config?: Config): | |||
| 242 | Lädt YueScript-Code aus einem String in eine Funktion. | 252 | Lädt YueScript-Code aus einem String in eine Funktion. |
| 243 | 253 | ||
| 244 | **Signatur:** | 254 | **Signatur:** |
| 255 | |||
| 245 | ```lua | 256 | ```lua |
| 246 | loadstring: function(input: string, config?: Config): | 257 | loadstring: function(input: string, config?: Config): |
| 247 | --[[loaded function]] nil | function(...: any): (any...), | 258 | --[[loaded function]] nil | function(...: any): (any...), |
| @@ -250,17 +261,17 @@ loadstring: function(input: string, config?: Config): | |||
| 250 | 261 | ||
| 251 | **Parameter:** | 262 | **Parameter:** |
| 252 | 263 | ||
| 253 | | Parameter | Typ | Beschreibung | | 264 | | Parameter | Typ | Beschreibung | |
| 254 | | --- | --- | --- | | 265 | | --------- | ------ | --------------------------------- | |
| 255 | | input | string | Der YueScript-Code. | | 266 | | input | string | Der YueScript-Code. | |
| 256 | | config | Config | [Optional] Die Compiler-Optionen. | | 267 | | config | Config | [Optional] Die Compiler-Optionen. | |
| 257 | 268 | ||
| 258 | **Rückgabe:** | 269 | **Rückgabe:** |
| 259 | 270 | ||
| 260 | | Rückgabetyp | Beschreibung | | 271 | | Rückgabetyp | Beschreibung | |
| 261 | | --- | --- | | 272 | | --------------- | --------------------------------------------------------------------- | |
| 262 | | function \| nil | Die geladene Funktion oder `nil`, falls das Laden fehlgeschlagen ist. | | 273 | | function \| nil | Die geladene Funktion oder `nil`, falls das Laden fehlgeschlagen ist. | |
| 263 | | string \| nil | Die Fehlermeldung oder `nil`, falls das Laden erfolgreich war. | | 274 | | string \| nil | Die Fehlermeldung oder `nil`, falls das Laden erfolgreich war. | |
| 264 | 275 | ||
| 265 | ### loadfile | 276 | ### loadfile |
| 266 | 277 | ||
| @@ -271,6 +282,7 @@ loadstring: function(input: string, config?: Config): | |||
| 271 | Lädt YueScript-Code aus einer Datei in eine Funktion. | 282 | Lädt YueScript-Code aus einer Datei in eine Funktion. |
| 272 | 283 | ||
| 273 | **Signatur:** | 284 | **Signatur:** |
| 285 | |||
| 274 | ```lua | 286 | ```lua |
| 275 | loadfile: function(filename: string, env: table, config?: Config): | 287 | loadfile: function(filename: string, env: table, config?: Config): |
| 276 | nil | function(...: any): (any...), | 288 | nil | function(...: any): (any...), |
| @@ -279,18 +291,18 @@ loadfile: function(filename: string, env: table, config?: Config): | |||
| 279 | 291 | ||
| 280 | **Parameter:** | 292 | **Parameter:** |
| 281 | 293 | ||
| 282 | | Parameter | Typ | Beschreibung | | 294 | | Parameter | Typ | Beschreibung | |
| 283 | | --- | --- | --- | | 295 | | --------- | ------ | --------------------------------- | |
| 284 | | filename | string | Der Dateiname. | | 296 | | filename | string | Der Dateiname. | |
| 285 | | env | table | Die Environment-Tabelle. | | 297 | | env | table | Die Environment-Tabelle. | |
| 286 | | config | Config | [Optional] Die Compiler-Optionen. | | 298 | | config | Config | [Optional] Die Compiler-Optionen. | |
| 287 | 299 | ||
| 288 | **Rückgabe:** | 300 | **Rückgabe:** |
| 289 | 301 | ||
| 290 | | Rückgabetyp | Beschreibung | | 302 | | Rückgabetyp | Beschreibung | |
| 291 | | --- | --- | | 303 | | --------------- | --------------------------------------------------------------------- | |
| 292 | | function \| nil | Die geladene Funktion oder `nil`, falls das Laden fehlgeschlagen ist. | | 304 | | function \| nil | Die geladene Funktion oder `nil`, falls das Laden fehlgeschlagen ist. | |
| 293 | | string \| nil | Die Fehlermeldung oder `nil`, falls das Laden erfolgreich war. | | 305 | | string \| nil | Die Fehlermeldung oder `nil`, falls das Laden erfolgreich war. | |
| 294 | 306 | ||
| 295 | ### loadfile | 307 | ### loadfile |
| 296 | 308 | ||
| @@ -301,6 +313,7 @@ loadfile: function(filename: string, env: table, config?: Config): | |||
| 301 | Lädt YueScript-Code aus einer Datei in eine Funktion. | 313 | Lädt YueScript-Code aus einer Datei in eine Funktion. |
| 302 | 314 | ||
| 303 | **Signatur:** | 315 | **Signatur:** |
| 316 | |||
| 304 | ```lua | 317 | ```lua |
| 305 | loadfile: function(filename: string, config?: Config): | 318 | loadfile: function(filename: string, config?: Config): |
| 306 | nil | function(...: any): (any...), | 319 | nil | function(...: any): (any...), |
| @@ -309,17 +322,17 @@ loadfile: function(filename: string, config?: Config): | |||
| 309 | 322 | ||
| 310 | **Parameter:** | 323 | **Parameter:** |
| 311 | 324 | ||
| 312 | | Parameter | Typ | Beschreibung | | 325 | | Parameter | Typ | Beschreibung | |
| 313 | | --- | --- | --- | | 326 | | --------- | ------ | --------------------------------- | |
| 314 | | filename | string | Der Dateiname. | | 327 | | filename | string | Der Dateiname. | |
| 315 | | config | Config | [Optional] Die Compiler-Optionen. | | 328 | | config | Config | [Optional] Die Compiler-Optionen. | |
| 316 | 329 | ||
| 317 | **Rückgabe:** | 330 | **Rückgabe:** |
| 318 | 331 | ||
| 319 | | Rückgabetyp | Beschreibung | | 332 | | Rückgabetyp | Beschreibung | |
| 320 | | --- | --- | | 333 | | --------------- | --------------------------------------------------------------------- | |
| 321 | | function \| nil | Die geladene Funktion oder `nil`, falls das Laden fehlgeschlagen ist. | | 334 | | function \| nil | Die geladene Funktion oder `nil`, falls das Laden fehlgeschlagen ist. | |
| 322 | | string \| nil | Die Fehlermeldung oder `nil`, falls das Laden erfolgreich war. | | 335 | | string \| nil | Die Fehlermeldung oder `nil`, falls das Laden erfolgreich war. | |
| 323 | 336 | ||
| 324 | ### dofile | 337 | ### dofile |
| 325 | 338 | ||
| @@ -330,23 +343,24 @@ loadfile: function(filename: string, config?: Config): | |||
| 330 | Lädt YueScript-Code aus einer Datei in eine Funktion und führt sie aus. | 343 | Lädt YueScript-Code aus einer Datei in eine Funktion und führt sie aus. |
| 331 | 344 | ||
| 332 | **Signatur:** | 345 | **Signatur:** |
| 346 | |||
| 333 | ```lua | 347 | ```lua |
| 334 | dofile: function(filename: string, env: table, config?: Config): any... | 348 | dofile: function(filename: string, env: table, config?: Config): any... |
| 335 | ``` | 349 | ``` |
| 336 | 350 | ||
| 337 | **Parameter:** | 351 | **Parameter:** |
| 338 | 352 | ||
| 339 | | Parameter | Typ | Beschreibung | | 353 | | Parameter | Typ | Beschreibung | |
| 340 | | --- | --- | --- | | 354 | | --------- | ------ | --------------------------------- | |
| 341 | | filename | string | Der Dateiname. | | 355 | | filename | string | Der Dateiname. | |
| 342 | | env | table | Die Environment-Tabelle. | | 356 | | env | table | Die Environment-Tabelle. | |
| 343 | | config | Config | [Optional] Die Compiler-Optionen. | | 357 | | config | Config | [Optional] Die Compiler-Optionen. | |
| 344 | 358 | ||
| 345 | **Rückgabe:** | 359 | **Rückgabe:** |
| 346 | 360 | ||
| 347 | | Rückgabetyp | Beschreibung | | 361 | | Rückgabetyp | Beschreibung | |
| 348 | | --- | --- | | 362 | | ----------- | ----------------------------------------- | |
| 349 | | any... | Die Rückgabewerte der geladenen Funktion. | | 363 | | any... | Die Rückgabewerte der geladenen Funktion. | |
| 350 | 364 | ||
| 351 | ### dofile | 365 | ### dofile |
| 352 | 366 | ||
| @@ -357,22 +371,23 @@ dofile: function(filename: string, env: table, config?: Config): any... | |||
| 357 | Lädt YueScript-Code aus einer Datei in eine Funktion und führt sie aus. | 371 | Lädt YueScript-Code aus einer Datei in eine Funktion und führt sie aus. |
| 358 | 372 | ||
| 359 | **Signatur:** | 373 | **Signatur:** |
| 374 | |||
| 360 | ```lua | 375 | ```lua |
| 361 | dofile: function(filename: string, config?: Config): any... | 376 | dofile: function(filename: string, config?: Config): any... |
| 362 | ``` | 377 | ``` |
| 363 | 378 | ||
| 364 | **Parameter:** | 379 | **Parameter:** |
| 365 | 380 | ||
| 366 | | Parameter | Typ | Beschreibung | | 381 | | Parameter | Typ | Beschreibung | |
| 367 | | --- | --- | --- | | 382 | | --------- | ------ | --------------------------------- | |
| 368 | | filename | string | Der Dateiname. | | 383 | | filename | string | Der Dateiname. | |
| 369 | | config | Config | [Optional] Die Compiler-Optionen. | | 384 | | config | Config | [Optional] Die Compiler-Optionen. | |
| 370 | 385 | ||
| 371 | **Rückgabe:** | 386 | **Rückgabe:** |
| 372 | 387 | ||
| 373 | | Rückgabetyp | Beschreibung | | 388 | | Rückgabetyp | Beschreibung | |
| 374 | | --- | --- | | 389 | | ----------- | ----------------------------------------- | |
| 375 | | any... | Die Rückgabewerte der geladenen Funktion. | | 390 | | any... | Die Rückgabewerte der geladenen Funktion. | |
| 376 | 391 | ||
| 377 | ### find_modulepath | 392 | ### find_modulepath |
| 378 | 393 | ||
| @@ -383,21 +398,22 @@ dofile: function(filename: string, config?: Config): any... | |||
| 383 | Löst den YueScript-Modulnamen in einen Dateipfad auf. | 398 | Löst den YueScript-Modulnamen in einen Dateipfad auf. |
| 384 | 399 | ||
| 385 | **Signatur:** | 400 | **Signatur:** |
| 401 | |||
| 386 | ```lua | 402 | ```lua |
| 387 | find_modulepath: function(name: string): string | 403 | find_modulepath: function(name: string): string |
| 388 | ``` | 404 | ``` |
| 389 | 405 | ||
| 390 | **Parameter:** | 406 | **Parameter:** |
| 391 | 407 | ||
| 392 | | Parameter | Typ | Beschreibung | | 408 | | Parameter | Typ | Beschreibung | |
| 393 | | --- | --- | --- | | 409 | | --------- | ------ | -------------- | |
| 394 | | name | string | Der Modulname. | | 410 | | name | string | Der Modulname. | |
| 395 | 411 | ||
| 396 | **Rückgabe:** | 412 | **Rückgabe:** |
| 397 | 413 | ||
| 398 | | Rückgabetyp | Beschreibung | | 414 | | Rückgabetyp | Beschreibung | |
| 399 | | --- | --- | | 415 | | ----------- | -------------- | |
| 400 | | string | Der Dateipfad. | | 416 | | string | Der Dateipfad. | |
| 401 | 417 | ||
| 402 | ### pcall | 418 | ### pcall |
| 403 | 419 | ||
| @@ -410,21 +426,22 @@ Fängt Fehler ab und gibt einen Statuscode sowie Ergebnisse oder ein Fehlerobjek | |||
| 410 | Schreibt die Fehlerzeilennummer bei Fehlern auf die ursprüngliche Zeilennummer im YueScript-Code um. | 426 | Schreibt die Fehlerzeilennummer bei Fehlern auf die ursprüngliche Zeilennummer im YueScript-Code um. |
| 411 | 427 | ||
| 412 | **Signatur:** | 428 | **Signatur:** |
| 429 | |||
| 413 | ```lua | 430 | ```lua |
| 414 | pcall: function(f: function, ...: any): boolean, any... | 431 | pcall: function(f: function, ...: any): boolean, any... |
| 415 | ``` | 432 | ``` |
| 416 | 433 | ||
| 417 | **Parameter:** | 434 | **Parameter:** |
| 418 | 435 | ||
| 419 | | Parameter | Typ | Beschreibung | | 436 | | Parameter | Typ | Beschreibung | |
| 420 | | --- | --- | --- | | 437 | | --------- | -------- | --------------------------- | |
| 421 | | f | function | Die aufzurufende Funktion. | | 438 | | f | function | Die aufzurufende Funktion. | |
| 422 | | ... | any | Argumente für die Funktion. | | 439 | | ... | any | Argumente für die Funktion. | |
| 423 | 440 | ||
| 424 | **Rückgabe:** | 441 | **Rückgabe:** |
| 425 | 442 | ||
| 426 | | Rückgabetyp | Beschreibung | | 443 | | Rückgabetyp | Beschreibung | |
| 427 | | --- | --- | | 444 | | ------------ | ---------------------------------------------------- | |
| 428 | | boolean, ... | Statuscode und Funktionsresultate oder Fehlerobjekt. | | 445 | | boolean, ... | Statuscode und Funktionsresultate oder Fehlerobjekt. | |
| 429 | 446 | ||
| 430 | ### require | 447 | ### require |
| @@ -437,21 +454,22 @@ Lädt ein Modul (Lua oder YueScript). | |||
| 437 | Schreibt die Fehlerzeilennummer auf die ursprüngliche Zeilennummer im YueScript-Code um, wenn das Modul ein YueScript-Modul ist und das Laden fehlschlägt. | 454 | Schreibt die Fehlerzeilennummer auf die ursprüngliche Zeilennummer im YueScript-Code um, wenn das Modul ein YueScript-Modul ist und das Laden fehlschlägt. |
| 438 | 455 | ||
| 439 | **Signatur:** | 456 | **Signatur:** |
| 457 | |||
| 440 | ```lua | 458 | ```lua |
| 441 | require: function(name: string): any... | 459 | require: function(name: string): any... |
| 442 | ``` | 460 | ``` |
| 443 | 461 | ||
| 444 | **Parameter:** | 462 | **Parameter:** |
| 445 | 463 | ||
| 446 | | Parameter | Typ | Beschreibung | | 464 | | Parameter | Typ | Beschreibung | |
| 447 | | --- | --- | --- | | 465 | | --------- | ------ | -------------------------------- | |
| 448 | | modname | string | Der Name des zu ladenden Moduls. | | 466 | | modname | string | Der Name des zu ladenden Moduls. | |
| 449 | 467 | ||
| 450 | **Rückgabe:** | 468 | **Rückgabe:** |
| 451 | 469 | ||
| 452 | | Rückgabetyp | Beschreibung | | 470 | | Rückgabetyp | Beschreibung | |
| 453 | | --- | --- | | 471 | | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 454 | | any | Der Wert in `package.loaded[modname]`, falls das Modul bereits geladen ist. Andernfalls wird ein Loader gesucht und der finale Wert von `package.loaded[modname]` sowie Loader-Daten als zweites Ergebnis zurückgegeben. | | 472 | | any | Der Wert in `package.loaded[modname]`, falls das Modul bereits geladen ist. Andernfalls wird ein Loader gesucht und der finale Wert von `package.loaded[modname]` sowie Loader-Daten als zweites Ergebnis zurückgegeben. | |
| 455 | 473 | ||
| 456 | ### p | 474 | ### p |
| 457 | 475 | ||
| @@ -462,15 +480,16 @@ require: function(name: string): any... | |||
| 462 | Inspiziert die Struktur der übergebenen Werte und gibt String-Repräsentationen aus. | 480 | Inspiziert die Struktur der übergebenen Werte und gibt String-Repräsentationen aus. |
| 463 | 481 | ||
| 464 | **Signatur:** | 482 | **Signatur:** |
| 483 | |||
| 465 | ```lua | 484 | ```lua |
| 466 | p: function(...: any) | 485 | p: function(...: any) |
| 467 | ``` | 486 | ``` |
| 468 | 487 | ||
| 469 | **Parameter:** | 488 | **Parameter:** |
| 470 | 489 | ||
| 471 | | Parameter | Typ | Beschreibung | | 490 | | Parameter | Typ | Beschreibung | |
| 472 | | --- | --- | --- | | 491 | | --------- | --- | ---------------------------- | |
| 473 | | ... | any | Die zu inspizierenden Werte. | | 492 | | ... | any | Die zu inspizierenden Werte. | |
| 474 | 493 | ||
| 475 | ### options | 494 | ### options |
| 476 | 495 | ||
| @@ -481,6 +500,7 @@ p: function(...: any) | |||
| 481 | Die aktuellen Compiler-Optionen. | 500 | Die aktuellen Compiler-Optionen. |
| 482 | 501 | ||
| 483 | **Signatur:** | 502 | **Signatur:** |
| 503 | |||
| 484 | ```lua | 504 | ```lua |
| 485 | options: Config.Options | 505 | options: Config.Options |
| 486 | ``` | 506 | ``` |
| @@ -494,21 +514,22 @@ options: Config.Options | |||
| 494 | Die Traceback-Funktion, die Stacktrace-Zeilennummern auf die ursprünglichen Zeilennummern im YueScript-Code umschreibt. | 514 | Die Traceback-Funktion, die Stacktrace-Zeilennummern auf die ursprünglichen Zeilennummern im YueScript-Code umschreibt. |
| 495 | 515 | ||
| 496 | **Signatur:** | 516 | **Signatur:** |
| 517 | |||
| 497 | ```lua | 518 | ```lua |
| 498 | traceback: function(message: string): string | 519 | traceback: function(message: string): string |
| 499 | ``` | 520 | ``` |
| 500 | 521 | ||
| 501 | **Parameter:** | 522 | **Parameter:** |
| 502 | 523 | ||
| 503 | | Parameter | Typ | Beschreibung | | 524 | | Parameter | Typ | Beschreibung | |
| 504 | | --- | --- | --- | | 525 | | --------- | ------ | ------------------------ | |
| 505 | | message | string | Die Traceback-Nachricht. | | 526 | | message | string | Die Traceback-Nachricht. | |
| 506 | 527 | ||
| 507 | **Rückgabe:** | 528 | **Rückgabe:** |
| 508 | 529 | ||
| 509 | | Rückgabetyp | Beschreibung | | 530 | | Rückgabetyp | Beschreibung | |
| 510 | | --- | --- | | 531 | | ----------- | --------------------------------------- | |
| 511 | | string | Die umgeschriebene Traceback-Nachricht. | | 532 | | string | Die umgeschriebene Traceback-Nachricht. | |
| 512 | 533 | ||
| 513 | ### is_ast | 534 | ### is_ast |
| 514 | 535 | ||
| @@ -519,22 +540,23 @@ traceback: function(message: string): string | |||
| 519 | Prüft, ob der Code dem angegebenen AST entspricht. | 540 | Prüft, ob der Code dem angegebenen AST entspricht. |
| 520 | 541 | ||
| 521 | **Signatur:** | 542 | **Signatur:** |
| 543 | |||
| 522 | ```lua | 544 | ```lua |
| 523 | is_ast: function(astName: string, code: string): boolean | 545 | is_ast: function(astName: string, code: string): boolean |
| 524 | ``` | 546 | ``` |
| 525 | 547 | ||
| 526 | **Parameter:** | 548 | **Parameter:** |
| 527 | 549 | ||
| 528 | | Parameter | Typ | Beschreibung | | 550 | | Parameter | Typ | Beschreibung | |
| 529 | | --- | --- | --- | | 551 | | --------- | ------ | ------------- | |
| 530 | | astName | string | Der AST-Name. | | 552 | | astName | string | Der AST-Name. | |
| 531 | | code | string | Der Code. | | 553 | | code | string | Der Code. | |
| 532 | 554 | ||
| 533 | **Rückgabe:** | 555 | **Rückgabe:** |
| 534 | 556 | ||
| 535 | | Rückgabetyp | Beschreibung | | 557 | | Rückgabetyp | Beschreibung | |
| 536 | | --- | --- | | 558 | | ----------- | ------------------------------- | |
| 537 | | boolean | Ob der Code dem AST entspricht. | | 559 | | boolean | Ob der Code dem AST entspricht. | |
| 538 | 560 | ||
| 539 | ### AST | 561 | ### AST |
| 540 | 562 | ||
| @@ -545,6 +567,7 @@ is_ast: function(astName: string, code: string): boolean | |||
| 545 | Die AST-Typdefinition mit Name, Zeile, Spalte und Unterknoten. | 567 | Die AST-Typdefinition mit Name, Zeile, Spalte und Unterknoten. |
| 546 | 568 | ||
| 547 | **Signatur:** | 569 | **Signatur:** |
| 570 | |||
| 548 | ```lua | 571 | ```lua |
| 549 | type AST = {string, integer, integer, any} | 572 | type AST = {string, integer, integer, any} |
| 550 | ``` | 573 | ``` |
| @@ -558,6 +581,7 @@ type AST = {string, integer, integer, any} | |||
| 558 | Konvertiert Code in AST. | 581 | Konvertiert Code in AST. |
| 559 | 582 | ||
| 560 | **Signatur:** | 583 | **Signatur:** |
| 584 | |||
| 561 | ```lua | 585 | ```lua |
| 562 | to_ast: function(code: string, flattenLevel?: number, astName?: string, reserveComment?: boolean): | 586 | to_ast: function(code: string, flattenLevel?: number, astName?: string, reserveComment?: boolean): |
| 563 | --[[AST]] AST | nil, | 587 | --[[AST]] AST | nil, |
| @@ -566,18 +590,18 @@ to_ast: function(code: string, flattenLevel?: number, astName?: string, reserveC | |||
| 566 | 590 | ||
| 567 | **Parameter:** | 591 | **Parameter:** |
| 568 | 592 | ||
| 569 | | Parameter | Typ | Beschreibung | | 593 | | Parameter | Typ | Beschreibung | |
| 570 | | --- | --- | --- | | 594 | | -------------- | ------- | -------------------------------------------------------------------------------------------- | |
| 571 | | code | string | Der Code. | | 595 | | code | string | Der Code. | |
| 572 | | flattenLevel | integer | [Optional] Der Flatten-Level. Höher bedeutet mehr Flattening. Standard ist 0. Maximum ist 2. | | 596 | | flattenLevel | integer | [Optional] Der Flatten-Level. Höher bedeutet mehr Flattening. Standard ist 0. Maximum ist 2. | |
| 573 | | astName | string | [Optional] Der AST-Name. Standard ist "File". | | 597 | | astName | string | [Optional] Der AST-Name. Standard ist "File". | |
| 574 | | reserveComment | boolean | [Optional] Ob die ursprünglichen Kommentare beibehalten werden. Standard ist false. | | 598 | | reserveComment | boolean | [Optional] Ob die ursprünglichen Kommentare beibehalten werden. Standard ist false. | |
| 575 | 599 | ||
| 576 | **Rückgabe:** | 600 | **Rückgabe:** |
| 577 | 601 | ||
| 578 | | Rückgabetyp | Beschreibung | | 602 | | Rückgabetyp | Beschreibung | |
| 579 | | --- | --- | | 603 | | ------------- | ---------------------------------------------------------------------- | |
| 580 | | AST \| nil | Der AST oder `nil`, falls die Konvertierung fehlgeschlagen ist. | | 604 | | AST \| nil | Der AST oder `nil`, falls die Konvertierung fehlgeschlagen ist. | |
| 581 | | string \| nil | Die Fehlermeldung oder `nil`, falls die Konvertierung erfolgreich war. | | 605 | | string \| nil | Die Fehlermeldung oder `nil`, falls die Konvertierung erfolgreich war. | |
| 582 | 606 | ||
| 583 | ### format | 607 | ### format |
| @@ -589,25 +613,26 @@ to_ast: function(code: string, flattenLevel?: number, astName?: string, reserveC | |||
| 589 | Formatiert den YueScript-Code. | 613 | Formatiert den YueScript-Code. |
| 590 | 614 | ||
| 591 | **Signatur:** | 615 | **Signatur:** |
| 616 | |||
| 592 | ```lua | 617 | ```lua |
| 593 | format: function(code: string, tabSize?: number, reserveComment?: boolean): string | 618 | format: function(code: string, tabSize?: number, reserveComment?: boolean): string |
| 594 | ``` | 619 | ``` |
| 595 | 620 | ||
| 596 | **Parameter:** | 621 | **Parameter:** |
| 597 | 622 | ||
| 598 | | Parameter | Typ | Beschreibung | | 623 | | Parameter | Typ | Beschreibung | |
| 599 | | --- | --- | --- | | 624 | | -------------- | ------- | ---------------------------------------------------------------------------------- | |
| 600 | | code | string | Der Code. | | 625 | | code | string | Der Code. | |
| 601 | | tabSize | integer | [Optional] Die Tab-Größe. Standard ist 4. | | 626 | | tabSize | integer | [Optional] Die Tab-Größe. Standard ist 4. | |
| 602 | | reserveComment | boolean | [Optional] Ob die ursprünglichen Kommentare beibehalten werden. Standard ist true. | | 627 | | reserveComment | boolean | [Optional] Ob die ursprünglichen Kommentare beibehalten werden. Standard ist true. | |
| 603 | 628 | ||
| 604 | **Rückgabe:** | 629 | **Rückgabe:** |
| 605 | 630 | ||
| 606 | | Rückgabetyp | Beschreibung | | 631 | | Rückgabetyp | Beschreibung | |
| 607 | | --- | --- | | 632 | | ----------- | --------------------- | |
| 608 | | string | Der formatierte Code. | | 633 | | string | Der formatierte Code. | |
| 609 | 634 | ||
| 610 | ### __call | 635 | ### \_\_call |
| 611 | 636 | ||
| 612 | **Typ:** Metamethod. | 637 | **Typ:** Metamethod. |
| 613 | 638 | ||
| @@ -617,21 +642,22 @@ Required das YueScript-Modul. | |||
| 617 | Schreibt die Fehlerzeilennummer bei Ladefehlern auf die ursprüngliche Zeilennummer im YueScript-Code um. | 642 | Schreibt die Fehlerzeilennummer bei Ladefehlern auf die ursprüngliche Zeilennummer im YueScript-Code um. |
| 618 | 643 | ||
| 619 | **Signatur:** | 644 | **Signatur:** |
| 645 | |||
| 620 | ```lua | 646 | ```lua |
| 621 | metamethod __call: function(self: yue, module: string): any... | 647 | metamethod __call: function(self: yue, module: string): any... |
| 622 | ``` | 648 | ``` |
| 623 | 649 | ||
| 624 | **Parameter:** | 650 | **Parameter:** |
| 625 | 651 | ||
| 626 | | Parameter | Typ | Beschreibung | | 652 | | Parameter | Typ | Beschreibung | |
| 627 | | --- | --- | --- | | 653 | | --------- | ------ | -------------- | |
| 628 | | module | string | Der Modulname. | | 654 | | module | string | Der Modulname. | |
| 629 | 655 | ||
| 630 | **Rückgabe:** | 656 | **Rückgabe:** |
| 631 | 657 | ||
| 632 | | Rückgabetyp | Beschreibung | | 658 | | Rückgabetyp | Beschreibung | |
| 633 | | --- | --- | | 659 | | ----------- | -------------- | |
| 634 | | any | Der Modulwert. | | 660 | | any | Der Modulwert. | |
| 635 | 661 | ||
| 636 | ## Config | 662 | ## Config |
| 637 | 663 | ||
| @@ -648,6 +674,7 @@ Die Compiler-Optionen. | |||
| 648 | Ob der Compiler die globalen Variablen im Code sammeln soll. | 674 | Ob der Compiler die globalen Variablen im Code sammeln soll. |
| 649 | 675 | ||
| 650 | **Signatur:** | 676 | **Signatur:** |
| 677 | |||
| 651 | ```lua | 678 | ```lua |
| 652 | lint_global: boolean | 679 | lint_global: boolean |
| 653 | ``` | 680 | ``` |
| @@ -661,6 +688,7 @@ lint_global: boolean | |||
| 661 | Ob der Compiler für den Root-Codeblock ein implizites Return verwenden soll. | 688 | Ob der Compiler für den Root-Codeblock ein implizites Return verwenden soll. |
| 662 | 689 | ||
| 663 | **Signatur:** | 690 | **Signatur:** |
| 691 | |||
| 664 | ```lua | 692 | ```lua |
| 665 | implicit_return_root: boolean | 693 | implicit_return_root: boolean |
| 666 | ``` | 694 | ``` |
| @@ -674,6 +702,7 @@ implicit_return_root: boolean | |||
| 674 | Ob der Compiler die ursprüngliche Zeilennummer im kompilierten Code beibehalten soll. | 702 | Ob der Compiler die ursprüngliche Zeilennummer im kompilierten Code beibehalten soll. |
| 675 | 703 | ||
| 676 | **Signatur:** | 704 | **Signatur:** |
| 705 | |||
| 677 | ```lua | 706 | ```lua |
| 678 | reserve_line_number: boolean | 707 | reserve_line_number: boolean |
| 679 | ``` | 708 | ``` |
| @@ -687,6 +716,7 @@ reserve_line_number: boolean | |||
| 687 | Ob der Compiler die ursprünglichen Kommentare im kompilierten Code beibehalten soll. | 716 | Ob der Compiler die ursprünglichen Kommentare im kompilierten Code beibehalten soll. |
| 688 | 717 | ||
| 689 | **Signatur:** | 718 | **Signatur:** |
| 719 | |||
| 690 | ```lua | 720 | ```lua |
| 691 | reserve_comment: boolean | 721 | reserve_comment: boolean |
| 692 | ``` | 722 | ``` |
| @@ -700,6 +730,7 @@ reserve_comment: boolean | |||
| 700 | Ob der Compiler statt Tabzeichen Leerzeichen verwenden soll. | 730 | Ob der Compiler statt Tabzeichen Leerzeichen verwenden soll. |
| 701 | 731 | ||
| 702 | **Signatur:** | 732 | **Signatur:** |
| 733 | |||
| 703 | ```lua | 734 | ```lua |
| 704 | space_over_tab: boolean | 735 | space_over_tab: boolean |
| 705 | ``` | 736 | ``` |
| @@ -713,6 +744,7 @@ space_over_tab: boolean | |||
| 713 | Ob der Compiler den zu kompilierenden Code als dasselbe aktuell kompilierte Modul behandeln soll. Nur für internen Gebrauch. | 744 | Ob der Compiler den zu kompilierenden Code als dasselbe aktuell kompilierte Modul behandeln soll. Nur für internen Gebrauch. |
| 714 | 745 | ||
| 715 | **Signatur:** | 746 | **Signatur:** |
| 747 | |||
| 716 | ```lua | 748 | ```lua |
| 717 | same_module: boolean | 749 | same_module: boolean |
| 718 | ``` | 750 | ``` |
| @@ -726,6 +758,7 @@ same_module: boolean | |||
| 726 | Ob die Compiler-Fehlermeldung einen Zeilennummern-Offset enthalten soll. Nur für internen Gebrauch. | 758 | Ob die Compiler-Fehlermeldung einen Zeilennummern-Offset enthalten soll. Nur für internen Gebrauch. |
| 727 | 759 | ||
| 728 | **Signatur:** | 760 | **Signatur:** |
| 761 | |||
| 729 | ```lua | 762 | ```lua |
| 730 | line_offset: integer | 763 | line_offset: integer |
| 731 | ``` | 764 | ``` |
| @@ -739,6 +772,7 @@ line_offset: integer | |||
| 739 | Die Ziel-Lua-Version. | 772 | Die Ziel-Lua-Version. |
| 740 | 773 | ||
| 741 | **Signatur:** | 774 | **Signatur:** |
| 775 | |||
| 742 | ```lua | 776 | ```lua |
| 743 | enum LuaTarget | 777 | enum LuaTarget |
| 744 | "5.1" | 778 | "5.1" |
| @@ -758,6 +792,7 @@ end | |||
| 758 | Zusätzliche Optionen für die Kompilierung. | 792 | Zusätzliche Optionen für die Kompilierung. |
| 759 | 793 | ||
| 760 | **Signatur:** | 794 | **Signatur:** |
| 795 | |||
| 761 | ```lua | 796 | ```lua |
| 762 | options: Options | 797 | options: Options |
| 763 | ``` | 798 | ``` |
| @@ -777,6 +812,7 @@ Zusätzliche Compiler-Optionen. | |||
| 777 | Die Ziel-Lua-Version für die Kompilierung. | 812 | Die Ziel-Lua-Version für die Kompilierung. |
| 778 | 813 | ||
| 779 | **Signatur:** | 814 | **Signatur:** |
| 815 | |||
| 780 | ```lua | 816 | ```lua |
| 781 | target: LuaTarget | 817 | target: LuaTarget |
| 782 | ``` | 818 | ``` |
| @@ -790,6 +826,7 @@ target: LuaTarget | |||
| 790 | Zusätzlicher Modul-Suchpfad. | 826 | Zusätzlicher Modul-Suchpfad. |
| 791 | 827 | ||
| 792 | **Signatur:** | 828 | **Signatur:** |
| 829 | |||
| 793 | ```lua | 830 | ```lua |
| 794 | path: string | 831 | path: string |
| 795 | ``` | 832 | ``` |
| @@ -803,6 +840,7 @@ path: string | |||
| 803 | Ob lokale Variablen in Traceback-Fehlermeldungen ausgegeben werden sollen. Standard ist false. | 840 | Ob lokale Variablen in Traceback-Fehlermeldungen ausgegeben werden sollen. Standard ist false. |
| 804 | 841 | ||
| 805 | **Signatur:** | 842 | **Signatur:** |
| 843 | |||
| 806 | ```lua | 844 | ```lua |
| 807 | dump_locals: boolean | 845 | dump_locals: boolean |
| 808 | ``` | 846 | ``` |
| @@ -816,6 +854,7 @@ dump_locals: boolean | |||
| 816 | Ob Fehlermeldungen vereinfacht werden sollen. Standard ist true. | 854 | Ob Fehlermeldungen vereinfacht werden sollen. Standard ist true. |
| 817 | 855 | ||
| 818 | **Signatur:** | 856 | **Signatur:** |
| 857 | |||
| 819 | ```lua | 858 | ```lua |
| 820 | simplified: boolean | 859 | simplified: boolean |
| 821 | ``` | 860 | ``` |
diff --git a/doc/docs/de/index.md b/doc/docs/de/index.md index 1a923b2..94bd00f 100644 --- a/doc/docs/de/index.md +++ b/doc/docs/de/index.md | |||
| @@ -21,4 +21,5 @@ footer: | |||
| 21 | message: MIT-Lizenz. | 21 | message: MIT-Lizenz. |
| 22 | copyright: Copyright © 2017-2026 Li Jin. Alle Rechte vorbehalten. | 22 | copyright: Copyright © 2017-2026 Li Jin. Alle Rechte vorbehalten. |
| 23 | --- | 23 | --- |
| 24 | |||
| 24 | --- | 25 | --- |
diff --git a/doc/docs/de/try/index.md b/doc/docs/de/try/index.md index f8c3193..4c17c6c 100755 --- a/doc/docs/de/try/index.md +++ b/doc/docs/de/try/index.md | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | # YueScript Online-Compiler | 1 | # YueScript Online-Compiler |
| 2 | |||
| 2 | --- | 3 | --- |
| 3 | 4 | ||
| 4 | Probiere YueScript im Browser mit WASM aus. | 5 | Probiere YueScript im Browser mit WASM aus. |
