-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added control flow support... wipes forehead
- Loading branch information
Showing
7 changed files
with
193 additions
and
7 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,18 @@ | ||
div | ||
- begin | ||
span beginning | ||
- raise Exception.new("yup") | ||
- rescue ex : Exception | ||
span rescued #{ex.message} | ||
- begin | ||
span beginning 2 | ||
- array = [] of Int32 | ||
- array[2] > 10 | ||
- rescue ex : IndexError | ||
span rescued IndexError | ||
- begin | ||
span beginning 3 | ||
- rescue | ||
span rescued begin 3 | ||
- else | ||
span nothing to rescue |
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,17 @@ | ||
div | ||
- case "string" | ||
- when "blah" | ||
span \"string\" is \"blah\" | ||
- when false | ||
span \"string\" is false | ||
- when String | ||
span this guy is nested | ||
- if false | ||
span nope | ||
- else | ||
span deeply nested | ||
- if false | ||
- elsif false | ||
- elsif false | ||
- else | ||
span true is just true man |
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,18 @@ | ||
div | ||
- if true == false | ||
span true is false | ||
- elsif true != true | ||
span true is not true | ||
- elsif !"blah".is_a?(String) | ||
span blah is a string | ||
- else | ||
span this guy is nested | ||
- if false | ||
span nope | ||
- else | ||
span deeply nested | ||
- if false | ||
- elsif false | ||
- elsif false | ||
- else | ||
span true is just true man |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module Slang | ||
VERSION = "1.0.1" | ||
VERSION = "1.1.0" | ||
end |