Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hunter upgrated (mostly for comments and separation-symbol); ISO EBNF…
… source cloned in three git-svn-id: https://slps.svn.sourceforge.net/svnroot/slps@1058 ab42f6e0-554d-0410-b580-99e487e6eeb2
- Loading branch information
1 parent
5c3f0ba
commit f470081
Showing
15 changed files
with
270 additions
and
15 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
File renamed without changes.
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,6 @@ | ||
ISO/IEC 14977 : 1996(E) | ||
Final draft version, SC22/N2249: http://www.cl.cam.ac.uk/~mgk25/iso-14977.pdf | ||
|
||
src.8.1.txt: | ||
8.1 The syntax of Extended BNF, pages 8–10 | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 0 additions & 5 deletions
5
...s/grammars/metasyntax/ebnf-iso/README.txt → ...grammars/metasyntax/ebnf-iso-2/README.txt
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 |
---|---|---|
@@ -1,11 +1,6 @@ | ||
ISO/IEC 14977 : 1996(E) | ||
Final draft version, SC22/N2249: http://www.cl.cam.ac.uk/~mgk25/iso-14977.pdf | ||
|
||
src.8.1.txt: | ||
8.1 The syntax of Extended BNF, pages 8–10 | ||
|
||
src.8.2.txt: | ||
8.2 Extended BNF used to define itself informally, page 10 | ||
|
||
src.8.3.txt: | ||
8.3 Extended BNF defined informally, page 10 |
File renamed without changes.
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,6 @@ | ||
extract: | ||
../../hunter.py src.8.3.txt config.edd ebnf-iso-3.raw.bgf | ||
${tooldir}/xbgf post-extraction.xbgf ebnf-iso-3.raw.bgf ebnf-iso-3.ext.bgf | ||
${tooldir}/xbgf refactor.xbgf ebnf-iso-3.ext.bgf ebnf-iso-3.bgf | ||
|
||
include ../../Makefile.include |
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,5 @@ | ||
ISO/IEC 14977 : 1996(E) | ||
Final draft version, SC22/N2249: http://www.cl.cam.ac.uk/~mgk25/iso-14977.pdf | ||
|
||
src.8.3.txt: | ||
8.3 Extended BNF defined informally, page 10 |
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"?> | ||
<edd:config xmlns:edd="http://planet-sl.org/edd"> | ||
<defining-symbol>=</defining-symbol> | ||
<definition-separator-symbol>/</definition-separator-symbol> | ||
<concatenate-symbol>,</concatenate-symbol> | ||
<nonterminals-may-contain-spaces/> | ||
<terminator-symbol>.</terminator-symbol> | ||
<start-comment-symbol>(*</start-comment-symbol> | ||
<end-comment-symbol>*)</end-comment-symbol> | ||
<start-terminal-symbol>’</start-terminal-symbol> | ||
<end-terminal-symbol>’</end-terminal-symbol> | ||
<start-option-symbol>(/</start-option-symbol> | ||
<end-option-symbol>/)</end-option-symbol> | ||
<start-star-symbol>(:</start-star-symbol> | ||
<end-star-symbol>:)</end-star-symbol> | ||
<ignore-extra-newlines/> | ||
<mask> | ||
<token>"’"</token> | ||
<terminal>’</terminal> | ||
</mask> | ||
</edd:config> |
35 changes: 35 additions & 0 deletions
35
topics/grammars/metasyntax/ebnf-iso-3/post-extraction.xbgf
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,35 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<xbgf:sequence xmlns:xbgf="http://planet-sl.org/xbgf" xmlns:bgf="http://planet-sl.org/bgf"> | ||
<xbgf:replace> | ||
<bgf:expression> | ||
<nonterminal>CHARACTER_-_’’’</nonterminal> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<nonterminal>CHARACTER</nonterminal> | ||
</bgf:expression> | ||
</xbgf:replace> | ||
<xbgf:replace> | ||
<bgf:expression> | ||
<nonterminal>CHARACTER_-_’"’</nonterminal> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<nonterminal>CHARACTER</nonterminal> | ||
</bgf:expression> | ||
</xbgf:replace> | ||
<xbgf:replace> | ||
<bgf:expression> | ||
<nonterminal>CHARACTER_-_’?’</nonterminal> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<nonterminal>CHARACTER</nonterminal> | ||
</bgf:expression> | ||
</xbgf:replace> | ||
<xbgf:replace> | ||
<bgf:expression> | ||
<nonterminal>EMPTY</nonterminal> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<terminal>EMPTY</terminal> | ||
</bgf:expression> | ||
</xbgf:replace> | ||
</xbgf:sequence> |
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,72 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<xbgf:sequence xmlns:xbgf="http://planet-sl.org/xbgf" xmlns:bgf="http://planet-sl.org/bgf"> | ||
<xbgf:massage> | ||
<bgf:expression> | ||
<sequence> | ||
<bgf:expression> | ||
<nonterminal>SYNTAX_RULE</nonterminal> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<star> | ||
<bgf:expression> | ||
<nonterminal>SYNTAX_RULE</nonterminal> | ||
</bgf:expression> | ||
</star> | ||
</bgf:expression> | ||
</sequence> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<plus> | ||
<bgf:expression> | ||
<nonterminal>SYNTAX_RULE</nonterminal> | ||
</bgf:expression> | ||
</plus> | ||
</bgf:expression> | ||
</xbgf:massage> | ||
<xbgf:massage> | ||
<bgf:expression> | ||
<sequence> | ||
<bgf:expression> | ||
<nonterminal>DIGIT</nonterminal> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<star> | ||
<bgf:expression> | ||
<nonterminal>DIGIT</nonterminal> | ||
</bgf:expression> | ||
</star> | ||
</bgf:expression> | ||
</sequence> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<plus> | ||
<bgf:expression> | ||
<nonterminal>DIGIT</nonterminal> | ||
</bgf:expression> | ||
</plus> | ||
</bgf:expression> | ||
</xbgf:massage> | ||
<xbgf:massage> | ||
<bgf:expression> | ||
<sequence> | ||
<bgf:expression> | ||
<nonterminal>CHARACTER</nonterminal> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<star> | ||
<bgf:expression> | ||
<nonterminal>CHARACTER</nonterminal> | ||
</bgf:expression> | ||
</star> | ||
</bgf:expression> | ||
</sequence> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<plus> | ||
<bgf:expression> | ||
<nonterminal>CHARACTER</nonterminal> | ||
</bgf:expression> | ||
</plus> | ||
</bgf:expression> | ||
</xbgf:massage> | ||
</xbgf:sequence> |
File renamed without changes.