Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This enhances perception of slices as being 'just strings'. It also makes output easier to read.
- Loading branch information
Showing
12 changed files
with
41 additions
and
34 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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,8 +1,8 @@ | |||
[{:exp=>{:a=>slice("a", 3)}}, | [{:exp=>{:a=>"a"@3}}, | ||
{:line=>slice("// line comment", 7)}, | {:line=>"// line comment"@7}, | ||
{:exp=>{:a=>slice("a", 25)}}, | {:exp=>{:a=>"a"@25}}, | ||
{:exp=>{:a=>slice("a", 27)}}, | {:exp=>{:a=>"a"@27}}, | ||
{:exp=>[{:a=>slice("a", 29)}, {:line=>slice("// line comment", 31)}]}, | {:exp=>[{:a=>"a"@29}, {:line=>"// line comment"@31}]}, | ||
{:exp=>[{:a=>slice("a", 49)}, {:multi=>slice("/* inline comment */", 51)}]}, | {:exp=>[{:a=>"a"@49}, {:multi=>"/* inline comment */"@51}]}, | ||
{:exp=>{:a=>slice("a", 72)}}, | {:exp=>{:a=>"a"@72}}, | ||
{:multi=>slice("/* multiline\n comment */", 77)}] | {:multi=>"/* multiline\n comment */"@77}] |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1 +1 @@ | |||
slice("aaaa", 0) | "aaaa"@0 | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong. |
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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,9 +1,9 @@ | |||
0.0.0.0 -> {:ipv4=>slice("0.0.0.0", 0)} | 0.0.0.0 -> {:ipv4=>"0.0.0.0"@0} | ||
255.255.255.255 -> {:ipv4=>slice("255.255.255.255", 0)} | 255.255.255.255 -> {:ipv4=>"255.255.255.255"@0} | ||
255.255.255 -> Failed: Expected one of [IPV4, IPV6]. at line 1 char 1. | 255.255.255 -> Failed: Expected one of [IPV4, IPV6]. at line 1 char 1. | ||
1:2:3:4:5:6:7:8 -> {:ipv6=>slice("1:2:3:4:5:6:7:8", 0)} | 1:2:3:4:5:6:7:8 -> {:ipv6=>"1:2:3:4:5:6:7:8"@0} | ||
12AD:34FC:A453:1922:: -> {:ipv6=>slice("12AD:34FC:A453:1922::", 0)} | 12AD:34FC:A453:1922:: -> {:ipv6=>"12AD:34FC:A453:1922::"@0} | ||
12AD::34FC -> {:ipv6=>slice("12AD::34FC", 0)} | 12AD::34FC -> {:ipv6=>"12AD::34FC"@0} | ||
12AD:: -> {:ipv6=>slice("12AD::", 0)} | 12AD:: -> {:ipv6=>"12AD::"@0} | ||
:: -> {:ipv6=>slice("::", 0)} | :: -> {:ipv6=>"::"@0} | ||
1:2 -> Failed: Expected one of [IPV4, IPV6]. at line 1 char 1. | 1:2 -> Failed: Expected one of [IPV4, IPV6]. at line 1 char 1. |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,3 +1,3 @@ | |||
{:e=>slice("a", 0), :rec=>{:e=>slice("a", 1), :rec=>{:e=>slice("a", 2), :rec=>{:e=>slice("a", 3), :rec=>nil}}}} | {:e=>"a"@0, :rec=>{:e=>"a"@1, :rec=>{:e=>"a"@2, :rec=>{:e=>"a"@3, :rec=>nil}}}} | ||
e2:'aa' !. / e1:'a' rec:B | e2:'aa' !. / e1:'a' rec:B | ||
{:e1=>slice("a", 0), :rec=>{:e1=>slice("a", 1), :rec=>{:e2=>slice("aa", 2)}}} | {:e1=>"a"@0, :rec=>{:e1=>"a"@1, :rec=>{:e2=>"aa"@2}}} |
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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,8 +1,8 @@ | |||
(): {:l=>slice("(", 0), :m=>nil, :r=>slice(")", 1)} (1 parens) | (): {:l=>"("@0, :m=>nil, :r=>")"@1} (1 parens) | ||
|
|
||
(()): {:l=>slice("(", 0), :m=>{:l=>slice("(", 1), :m=>nil, :r=>slice(")", 2)}, :r=>slice(")", 3)} (2 parens) | (()): {:l=>"("@0, :m=>{:l=>"("@1, :m=>nil, :r=>")"@2}, :r=>")"@3} (2 parens) | ||
|
|
||
((((())))): {:l=>slice("(", 0), :m=>{:l=>slice("(", 1), :m=>{:l=>slice("(", 2), :m=>{:l=>slice("(", 3), :m=>{:l=>slice("(", 4), :m=>nil, :r=>slice(")", 5)}, :r=>slice(")", 6)}, :r=>slice(")", 7)}, :r=>slice(")", 8)}, :r=>slice(")", 9)} (5 parens) | ((((())))): {:l=>"("@0, :m=>{:l=>"("@1, :m=>{:l=>"("@2, :m=>{:l=>"("@3, :m=>{:l=>"("@4, :m=>nil, :r=>")"@5}, :r=>")"@6}, :r=>")"@7}, :r=>")"@8}, :r=>")"@9} (5 parens) | ||
|
|
||
((()): Failed to match sequence (l:'(' m:(BALANCED?)) at line 1 char 6. | ((()): Failed to match sequence (l:'(' m:(BALANCED?)) at line 1 char 6. | ||
|
|
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,2 +1,2 @@ | |||
"verified" | "verified" | ||
{:o=>{:name=>slice("b", 1)}, :i=>"verified", :c=>{:name=>slice("a", 33)}} | {:o=>{:name=>"b"@1}, :i=>"verified", :c=>{:name=>"a"@33}} |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,3 +1,3 @@ | |||
[#<struct IntLit text=slice("123", 0)>, | [#<struct IntLit text="123"@0>, | ||
#<struct IntLit text=slice("12345", 4)>, | #<struct IntLit text="12345"@4>, | ||
#<struct StringLit text=slice(" Some String with \\\"escapes\\\"", 11)>] | #<struct StringLit text=" Some String with \\\"escapes\\\""@11>] |
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
dette er en test