Skip to content

Commit

Permalink
Added new sample grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
Massimo Gengarelli committed Apr 19, 2012
1 parent 4d4df38 commit 1bcf68a
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/GrammarExample.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Define a grammar
grammar.name = Example Grammar
grammar.author = Massimo Gengarelli
grammar.author.email = massimo.gengarelli@amadeus.com
grammar.author.email = massimo.gengarelli@gmail.com
grammar.creationDate = 24 Mar 2012

# --------------------------------------------- #
Expand Down
31 changes: 31 additions & 0 deletions test/MisterGrammar.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Another sample grammar for PhantomMenace
# FirstName LastName Title
# ex: Massimo Gengarelli Mr

[grammar]
grammar.name = Mister Grammar
grammar.author = Massimo Gengarelli
grammar.author.email = massimo.gengarelli@gmail.com
grammar.creationDate = 19 Apr 2012

[token]
token.name = FirstName
token.preseparator = 32
token.preseparator.mandatory = No
token.preseparator.multiple = No
token.string = n+

[token]
token.name = LastName
token.preseparator = 32
token.preseparator.mandatory = Yes
token.preseparator.multiple = No
token.string = n+

[token]
token.name = Title
token.preseparator = 32
token.preseparator.mandatory = Yes
token.preseparator.multiple = Yes
token.string = nn

2 changes: 1 addition & 1 deletion test/TicketGrammar.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[grammar]
grammar.name = Ticket Grammar
grammar.author = Massimo Gengarelli
grammar.author.email = massimo.gengarelli@amadeus.com
grammar.author.email = massimo.gengarelli@gmail.com
grammar.creationDate = 8 Apr 2012

[token]
Expand Down

0 comments on commit 1bcf68a

Please sign in to comment.