Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changed the algorithm behind STEP 5 (decomposing symbols), added test…
… cases that helped uncover subtle bugs git-svn-id: https://slps.svn.sourceforge.net/svnroot/slps@1086 ab42f6e0-554d-0410-b580-99e487e6eeb2
- Loading branch information
1 parent
8944eaa
commit df76bbf
Showing
33 changed files
with
579 additions
and
40 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
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,99 @@ | ||
675.1: non_quotation_mark_graphic_character ::= graphic_character | ||
|
||
675.2: non_end_of_line_character ::= character | ||
|
||
676.1: pragma_argument_identifier ::= identifier | ||
|
||
676.2: subtype_name ::= name | ||
|
||
677.1: static_expression ::= expression | ||
|
||
677.2: parent_subtype_indication ::= subtype_indication | ||
|
||
677.3: static_simple_expression ::= simple_expression | ||
|
||
678.1: discrete_subtype_indication ::= subtype_indication | ||
|
||
678.2: discriminant_selector_name ::= selector_name | ||
|
||
678.3: discriminant_direct_name ::= direct_name | ||
|
||
679.1: interface_subtype_mark ::= subtype_mark | ||
|
||
680.1: component_selector_name ::= selector_name | ||
|
||
682.1: label_statement_identifier ::= statement_identifier | ||
|
||
682.2: variable_name ::= name | ||
|
||
682.3: boolean_expression ::= expression | ||
|
||
682.4: loop_statement_identifier ::= statement_identifier | ||
|
||
682.5: loop_identifier ::= identifier | ||
|
||
683.1: block_statement_identifier ::= statement_identifier | ||
|
||
683.2: block_identifier ::= identifier | ||
|
||
683.3: loop_name ::= name | ||
|
||
683.4: label_name ::= name | ||
|
||
684.1: procedure_name ::= name | ||
|
||
684.2: procedure_prefix ::= prefix | ||
|
||
684.3: function_name ::= name | ||
|
||
684.4: function_prefix ::= prefix | ||
|
||
684.5: formal_parameter_selector_name ::= selector_name | ||
|
||
685.1: ancestor_subtype_indication ::= subtype_indication | ||
|
||
685.2: package_name ::= name | ||
|
||
685.3: object_name ::= name | ||
|
||
685.4: exception_name ::= name | ||
|
||
685.5: callable_entity_name ::= name | ||
|
||
685.6: generic_package_name ::= name | ||
|
||
685.7: generic_procedure_name ::= name | ||
|
||
685.8: generic_function_name ::= name | ||
|
||
685.9: task_identifier ::= identifier | ||
|
||
686.1: protected_identifier ::= identifier | ||
|
||
686.2: entry_direct_name ::= direct_name | ||
|
||
686.3: entry_identifier ::= identifier | ||
|
||
687.1: entry_name ::= name | ||
|
||
687.2: delay_expression ::= expression | ||
|
||
688.1: task_name ::= name | ||
|
||
689.1: library_unit_name ::= name | ||
|
||
689.2: string_expression ::= expression | ||
|
||
690.1: generic_formal_parameter_selector_name ::= selector_name | ||
|
||
690.2: subprogram_name ::= name | ||
|
||
690.3: package_instance_name ::= name | ||
|
||
691.1: first_subtype_local_name ::= local_name | ||
|
||
692.1: component_local_name ::= local_name | ||
|
||
692.2: restriction_identifier ::= identifier | ||
|
||
692.3: restriction_parameter_identifier ::= identifier |
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,15 +1,16 @@ | ||
See COPYING for copyright matters. | ||
See http://www.cs.vu.nl/grammarware/browsable/CSharp for an on-line version. | ||
See http://userpages.uni-koblenz.de/~zaytsev/text/toosharp.pdf for the paper: | ||
See http://grammarware.net/text/2005/toosharp.pdf for the paper: | ||
|
||
@inproceedings{TooSharp2005, | ||
author = "Vadim Zaytsev", | ||
title = "{Correct C\# Grammar too Sharp for ISO}", | ||
booktitle = "{Pre-proceedings of the International Summer School on Generative and Transformational Techniques in Software Engineering (GTTSE 2005), Part II, Participants Workshop}", | ||
year = 2005, | ||
pages = "154--155", | ||
address = "Braga, Portugal", | ||
month = "July", | ||
publisher = "Technical Report, TR-CCTC/DI-36, Universidade do Minho", | ||
note = "Extended abstract", | ||
} | ||
|
||
@inproceedings{TooSharp, | ||
author = "Vadim Zaytsev", | ||
title = "{Correct C# Grammar too Sharp for ISO}", | ||
booktitle = "{International Summer School on Generative and Transformational Techniques in Software Engineering (GTTSE 2005), Part II, Participants Workshop}", | ||
year = 2005, | ||
pages = "154--155", | ||
organization = "{Springer}", | ||
address = "Braga, Portugal", | ||
month = "July", | ||
note = "Extended abstract", | ||
} |
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,24 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"> | ||
<bgf:production> | ||
<label>1.1.1</label> | ||
<nonterminal>foo</nonterminal> | ||
<bgf:expression> | ||
<nonterminal>bar</nonterminal> | ||
</bgf:expression> | ||
</bgf:production> | ||
<bgf:production> | ||
<label>1.1.2</label> | ||
<nonterminal>bar</nonterminal> | ||
<bgf:expression> | ||
<nonterminal>wez</nonterminal> | ||
</bgf:expression> | ||
</bgf:production> | ||
<bgf:production> | ||
<label>2.1.3</label> | ||
<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,6 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<edd:config xmlns:edd="http://planet-sl.org/edd"> | ||
<end-label-symbol>:\n</end-label-symbol> | ||
<defining-symbol>::=</defining-symbol> | ||
<terminator-symbol>END\n\n</terminator-symbol> | ||
</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,9 @@ | ||
1.1.1: | ||
foo ::= bar END | ||
|
||
1.1.2: | ||
bar ::= wez END | ||
|
||
2.1.3: | ||
wez ::= foo END | ||
|
Oops, something went wrong.