-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't unescape strings when printing. No more support for special cha…
…racters. Fixes #373
- Loading branch information
1 parent
05cdcc8
commit 16a3c43
Showing
8 changed files
with
41 additions
and
6 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
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
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
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
1 change: 1 addition & 0 deletions
1
Starship/Rockstar.Test/programs/examples/02-types-and-values/string-literals.rock.out
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
16 changes: 16 additions & 0 deletions
16
Starship/Rockstar.Test/programs/examples/02-types-and-values/unprintable-characters.rock
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,16 @@ | ||
The string is "Name" | ||
Rock it with 9 (append a TAB character) | ||
Rock it with "Instrument" | ||
Rock it with 10 (append a LF) | ||
Rock it with "Eddie", 9, "Guitar", 10 | ||
Rock it with "Alex", 9, "Drums", 10 | ||
Rock it with "Mike", 9, "Bass", 10 | ||
Print it | ||
|
||
(prints: | ||
Name Instrument | ||
Eddie Guitar | ||
Alex Drums | ||
Mike Bass | ||
|
||
) |
4 changes: 4 additions & 0 deletions
4
Starship/Rockstar.Test/programs/fixtures/strings/string-literals.rock
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,4 @@ | ||
the string = "A\tB" | ||
for every char in the string write the char | ||
print the string | ||
(prints: A\\tBA\\tB) |
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