-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #252 from b3b00/feature/short-operation-attributes
shorter attributes for operations
- Loading branch information
Showing
6 changed files
with
161 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
namespace sly.parser.generator | ||
{ | ||
public class InfixAttribute : OperationAttribute | ||
{ | ||
public InfixAttribute(int intToken, Associativity assoc, int precedence) : base(intToken,Affix.InFix,assoc,precedence) | ||
{ | ||
} | ||
|
||
public InfixAttribute(string stringToken, Associativity assoc, int precedence) : base(stringToken,Affix.InFix, assoc,precedence) | ||
{ | ||
} | ||
} | ||
} |
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,13 @@ | ||
namespace sly.parser.generator | ||
{ | ||
public class PostfixAttribute : OperationAttribute | ||
{ | ||
public PostfixAttribute(int intToken, Associativity assoc, int precedence) : base(intToken,Affix.PostFix,assoc,precedence) | ||
{ | ||
} | ||
|
||
public PostfixAttribute(string stringToken, Associativity assoc, int precedence) : base(stringToken,Affix.PostFix, assoc,precedence) | ||
{ | ||
} | ||
} | ||
} |
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,13 @@ | ||
namespace sly.parser.generator | ||
{ | ||
public class PrefixAttribute : OperationAttribute | ||
{ | ||
public PrefixAttribute(int intToken, Associativity assoc, int precedence) : base(intToken,Affix.PreFix,assoc,precedence) | ||
{ | ||
} | ||
|
||
public PrefixAttribute(string stringToken, Associativity assoc, int precedence) : base(stringToken,Affix.PreFix, assoc,precedence) | ||
{ | ||
} | ||
} | ||
} |