-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Example scripts for string operators and string escape sequences.
- Loading branch information
Showing
2 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/local/bin/uartix | ||
# String operation example. | ||
|
||
render (~"Hello") + "\r\n"; | ||
render "Go! " * 3; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/local/bin/uartix | ||
# String escape sequence examples. | ||
|
||
render "Hello,\nWorld!\r\n"; | ||
render "Hello,\rWorld!\r\n"; | ||
render "Hello,\tWorld!\r\n"; | ||
render "Hello,\bWorld!\r\n"; | ||
render "Hello,\fWorld!\r\n"; | ||
render "They say, \"Hello, World!\"\r\n"; | ||
render "This is a backslash: \\\r\n"; | ||
render "Smiley face: \u263A\r\n"; |