Skip to content

Commit

Permalink
+2 C# grammars (full ECMA set)
Browse files Browse the repository at this point in the history
git-svn-id: https://slps.svn.sourceforge.net/svnroot/slps@798 ab42f6e0-554d-0410-b580-99e487e6eeb2
  • Loading branch information
grammarware committed May 9, 2010
1 parent d007265 commit 0e306f8
Show file tree
Hide file tree
Showing 25 changed files with 16,745 additions and 6 deletions.
18 changes: 12 additions & 6 deletions topics/grammars/csharp/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
build:
cd ecma-334-2005 && make build
cd ecma-334-2006 && make build
cd ecma-334-1 && make build
cd ecma-334-2 && make build
cd ecma-334-3 && make build
cd ecma-334-4 && make build
cd iso-23270-2003 && make build
cd iso-23270-2006 && make build
cd msft-ls-1.0 && make build
Expand All @@ -9,8 +11,10 @@ build:
cd msft-ls-4.0 && make build

clean:
cd ecma-334-2005 && make clean
cd ecma-334-2006 && make clean
cd ecma-334-1 && make clean
cd ecma-334-2 && make clean
cd ecma-334-3 && make clean
cd ecma-334-4 && make clean
cd iso-23270-2003 && make clean
cd iso-23270-2006 && make clean
cd msft-ls-1.0 && make clean
Expand All @@ -19,8 +23,10 @@ clean:
cd msft-ls-4.0 && make clean

test:
cd ecma-334-2005 && make test
cd ecma-334-2006 && make test
cd ecma-334-1 && make test
cd ecma-334-2 && make test
cd ecma-334-3 && make test
cd ecma-334-4 && make test
cd iso-23270-2003 && make test
cd iso-23270-2006 && make test
cd msft-ls-1.0 && make test
Expand Down
File renamed without changes.
19 changes: 19 additions & 0 deletions topics/grammars/csharp/ecma-334-1/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
C# Language Specification
Standard ECMA-334
1st Edition
December 2001

http://www.ecma-international.org/publications/files/ECMA-ST-WITHDRAWN/ECMA-334,%201st%20edition,%20December%202001.pdf

Errors spotted right away:

page 341:
the definition of keyword lacks:
assembly remove get set field method module param property add volatile
(added manually to keywords.lst)

page 347:
the definition of primary-no-array-creation-expression contains sizeof-expression,
which should be a part of §A.3 Grammarextensionsforunsafecode
(manually removed from ecma-334-annex.txt)
(spotted because {sizeof-expression} was L-split into {"sizeof" "-" expression})
12 changes: 12 additions & 0 deletions topics/grammars/csharp/ecma-334-1/banned-lines.lst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
1
2
3
4
5
6
7
8
9
0
SPECIFICATION
Appendix
Loading

0 comments on commit 0e306f8

Please sign in to comment.