Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new Hunter feature: fetch grammar chunks by delimiters
git-svn-id: https://slps.svn.sourceforge.net/svnroot/slps@1099 ab42f6e0-554d-0410-b580-99e487e6eeb2
- Loading branch information
1 parent
b71627c
commit d55aee9
Showing
4 changed files
with
69 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"> | ||
<bgf:production> | ||
<nonterminal>foo</nonterminal> | ||
<bgf:expression> | ||
<nonterminal>bar</nonterminal> | ||
</bgf:expression> | ||
</bgf:production> | ||
<bgf:production> | ||
<nonterminal>bar</nonterminal> | ||
<bgf:expression> | ||
<nonterminal>wez</nonterminal> | ||
</bgf:expression> | ||
</bgf:production> | ||
<bgf:production> | ||
<nonterminal>wez</nonterminal> | ||
<bgf:expression> | ||
<nonterminal>foo</nonterminal> | ||
</bgf:expression> | ||
</bgf:production> | ||
</bgf:grammar> |
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,10 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<edd:config xmlns:edd="http://planet-sl.org/edd"> | ||
<start-grammar-symbol><grammar></start-grammar-symbol> | ||
<end-grammar-symbol></grammar></end-grammar-symbol> | ||
<defining-symbol>:</defining-symbol> | ||
<terminator-symbol>.</terminator-symbol> | ||
<ignore> | ||
<newline/> | ||
</ignore> | ||
</edd:config> |
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,11 @@ | ||
The following is the grammar of foo: | ||
<grammar> | ||
foo : bar. | ||
bar : wez. | ||
</grammar> | ||
|
||
The following is also a grammar, but not of foo | ||
|
||
<grammar>wez : foo.</grammar> | ||
|
||
This is some irrelevant text. |