-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
64 additions
and
198 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 was deleted.
Oops, 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
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
5 changes: 3 additions & 2 deletions
5
Irony.Samples/SourceSamples/SampleExpressionEvaluator/TestIif.txt
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,4 @@ | ||
# Testing special form "IIF" | ||
# You can also use equivalent "?" operator: '1 > 0 ? "true" : 1/0' | ||
iif(1 > 0, "true", 1/0) # notice that if-false argument is not evaluated | ||
# and equivalent "?" operator: '1 > 0 ? "true" : 1/0' | ||
# notice that if-false argument is not evaluated in both cases | ||
iif(1 > 0, "true", 1/0) + ", " + (1 > 0 ? "true" : 1/0) # expected: true, true |
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,25 +1,23 @@ | ||
//example from c# spec, page 93 | ||
namespace Sample { | ||
class @class | ||
{ | ||
public static void @static(bool @bool) { | ||
if (@bool) | ||
System.Console.WriteLine("true"); | ||
else | ||
System.Console.WriteLine("false"); | ||
} | ||
} | ||
class Class1 | ||
{ | ||
static void M() { | ||
cl\u0061ss.st\u0061tic(true); | ||
} | ||
} | ||
class @class { | ||
public static void @static(bool @bool) { | ||
if (@bool) | ||
System.Console.WriteLine("true"); | ||
else | ||
System.Console.WriteLine("false"); | ||
} | ||
} | ||
class Class1 { | ||
static void M() { | ||
cl\u0061ss.st\u0061tic(true); | ||
} | ||
} | ||
|
||
} | ||
|
||
/* code comment from spec: | ||
[the code] defines a class named “class” with a static method named “static” that takes a parameter named | ||
“bool”. Note that since Unicode escapes are not permitted in keywords, the token “cl\u0061ss” is an | ||
identifier, and is the same identifier as “@class”. end example] | ||
[the code] defines a class named 'class' with a static method named 'static' that takes a parameter named | ||
'bool'. Note that since Unicode escapes are not permitted in keywords, the token 'cl\u0061ss' is an | ||
identifier, and is the same identifier as '@class'. end example] | ||
*/ |
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
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