You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/language/index.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@
10
10
## Abstract
11
11
**Red Sea Markup Language** (RSML) is a simple declarative markup language created for the purpose of following logic paths based on the host's operating system and CPU architecture.
12
12
13
-
It is a better altenative to scripting languages because of its simplicity, ease of use, and the fact it's not necessary to package a whole interpreter.
13
+
It is a better alternative to scripting languages because of its simplicity, ease of use, and the fact it's not necessary to package a whole interpreter.
14
14
15
15
## Evaluation
16
16
The __"evaluation"__ is the act of going through every line of RSML and evaluating the ones that match the **logic path** syntax, while running the ones that match the **special action** syntax.
@@ -250,8 +250,8 @@ The parameters in the syntax, although complex at first glance, are quite simple
250
250
# it's because there's no overload with only system name and system major version
251
251
# hence we having to use the cpu-architecture argument as well
252
252
253
-
# the only alternative in this acse was going with the full overload
254
-
# some might say full with "any" is clearer cuz the docujment becomes structured
253
+
# the only alternative in this case was going with the full overload
254
+
# some might say full with "any" is clearer cuz the document becomes structured
255
255
# with a column-like look and it's easier to read and interpret what each argument is
256
256
# however, some will say simplicity is key
257
257
# here it goes, anyhoo:
@@ -272,7 +272,7 @@ The parameters in the syntax, although complex at first glance, are quite simple
272
272
=== "Throwing an error"
273
273
```rsea
274
274
!> any any any "This error is thrown on any OS and architecture"
275
-
# this can be done at the end of the file if you want to ensure the machien can't just let it pass as "null" (this way, it forces evaluation to always end with an error if no other logic path matched)
275
+
# this can be done at the end of the file if you want to ensure the machine can't just let it pass as "null" (this way, it forces evaluation to always end with an error if no other logic path matched)
276
276
# if you do it at the start of the file, well... good luck reaching any other logic path :D
277
277
# isn't that right, Jerry?
278
278
```
@@ -337,7 +337,7 @@ These are built into the language and cannot be changed whatsoever _(unless you
337
337
| ThrowError | Mandatory | Throws an error with the given message. |<!-- md:version 2.0.0-prerelease8 -->|
338
338
339
339
???+ tip "ThrowError vs `!>` operator"
340
-
<!-- md:version 2.0.0-prerelease8 --> Note how the `ThrowError` special action is practically the same as `!> any any any "<message>"` logic path. The difference is internal only and quite neggligible for most use cases. Some will argue the first is clearer, while others will argue the second is clearer. Choose whichever you prefer!
340
+
<!-- md:version 2.0.0-prerelease8 --> Note how the `ThrowError` special action is practically the same as `!> any any any "<message>"` logic path. The difference is internal only and quite negligible for most use cases. Some will argue the first is clearer, while others will argue the second is clearer. Choose whichever you prefer!
341
341
342
342
## Evaluation Process Flow
343
343
!!! info "Strictly markup"
@@ -388,7 +388,7 @@ flowchart LR
388
388
```
389
389
390
390
## Comments
391
-
We chose to talk about comments after the evalaution process, because, oh well, big surprise!, comments are ignored by the parser!
391
+
We chose to talk about comments after the evaluation process, because, oh well, big surprise!, comments are ignored by the parser!
392
392
393
393
<!-- md:version 1.0.0 --> **Comments are quite simple in RSML.** If a `#!python #` character is at the start of a line, that line is considered a comment and will be fully ignored by the parser.
0 commit comments