Created
June 18, 2011 18:07
-
-
Save Diullei/1033348 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| // exemplo de código... | |
| namespace EasySyntax.TestProject | |
| { | |
| public class MyGramar : Grammar | |
| { | |
| public MyGramar() | |
| { | |
| Nonterminal("digt", | |
| Or("0", "1", "2", "3", "4", "5", "6", "7", "8", "9")); | |
| Nonterminal("number", | |
| Expr.digt.OrMore()); | |
| Nonterminal("dot", | |
| Symbol(".")); | |
| Nonterminal("dbl", | |
| And(Expr.number, Expr.dot, Expr.number)); | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment