Title: [1255] trunk/core/jbehave-core/src/java/org/jbehave/scenario/parser/grammar.ebnf: More complete
Revision
1255
Author
mauro
Date
2009-09-19 09:15:10 -0500 (Sat, 19 Sep 2009)

Log Message

More complete

Modified Paths


Diff

Modified: trunk/core/jbehave-core/src/java/org/jbehave/scenario/parser/grammar.ebnf (1254 => 1255)

--- trunk/core/jbehave-core/src/java/org/jbehave/scenario/parser/grammar.ebnf	2009-09-19 14:05:27 UTC (rev 1254)
+++ trunk/core/jbehave-core/src/java/org/jbehave/scenario/parser/grammar.ebnf	2009-09-19 14:15:10 UTC (rev 1255)
@@ -17,6 +17,12 @@
 ; The word is any sequence of non-space characters that does not match a KeyWord
 Word := NonSpaceCharacter* ; TODO express "!Keyword"
 
+; The space between words
+Space := " "
+
+; Any non-space character
+NonSpaceCharacter := [.] ; TODO express "!Space"
+
 ; The keywords which are reserved (or equivalent in I18n-ed locale)
 KeyWord := "Scenario:" | "GivenScenarios:" | "Given" | "When" | "Then" | "And" 
 
@@ -53,11 +59,17 @@
 ; The table comprises of a header row and data rows
 Table := TableHeader TableRow+
 
-; The table header contains the column names, separated by "|"
-TableHeader := (("|" TableCharacter+)+ "|"  Newline
+; The table header contains the column names, separated by TableColumnSeparator
+TableHeader := ((TableColumnSeparator TableCharacter+)+ TableColumnSeparator  Newline
 
-; The table row contains the column values, separated by "|"
-TableRow := (("|" TableCharacter+)+ "|"  Newline
+; The table row contains the column values, separated by TableColumnSeparator
+TableRow := ((TableColumnSeparator TableCharacter+)+ TableColumnSeparator  Newline
 
+; The table column separator
+TableColumnSeparator := "|"
+
+; The table character can be any character, expect for TableColumnSeparator and Newline
+TableCharacter := [.] ; TODO express !TableColumnSeparator and !Newline
+
 ; The new line character
 Newline := "\n"
\ No newline at end of file


To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email

Reply via email to