Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Major rearrangement of files and directories with new naming convention
git-svn-id: https://slps.svn.sourceforge.net/svnroot/slps@1054 ab42f6e0-554d-0410-b580-99e487e6eeb2
  • Loading branch information
grammarware committed May 25, 2011
1 parent 5aa1151 commit bbb2832
Show file tree
Hide file tree
Showing 68 changed files with 135 additions and 137,998 deletions.
7 changes: 7 additions & 0 deletions topics/grammars/Makefile.include
@@ -0,0 +1,7 @@
tooldir = ../../../../shared/tools

clean:
rm -f *.bgf *.bnf *.html intermediate.lll tmp.xml *prepared*

test:
ls -1 *.bgf | xargs -n1 ${tooldir}/validate bgf
16 changes: 6 additions & 10 deletions topics/grammars/c/Makefile
@@ -1,14 +1,10 @@
build:
cd iso-9899-1999 && make build
cd iso-9899-tc2 && make build
cd iso-9899-tc3 && make build
extract:
cd iso-9899-1999 && make extract
cd iso-9899-tc2 && make extract
cd iso-9899-tc3 && make extract

clean:
cd iso-9899-1999 && make clean
cd iso-9899-tc2 && make clean
cd iso-9899-tc3 && make clean
rm -f */*.bgf */*.html */*.bnf */intermediate.lll */tmp.xml

test:
cd iso-9899-1999 && make test
cd iso-9899-tc2 && make test
cd iso-9899-tc3 && make test
ls -1 */*.bgf | xargs -n1 ../../../shared/tools/validate bgf
20 changes: 5 additions & 15 deletions topics/grammars/c/iso-9899-1999/Makefile
@@ -1,16 +1,6 @@
tooldir = ../../../../shared/tools
extract:
${tooldir}/pdf2bgf src.language.syntax.summary.txt c.raw.bgf banned-lines.lst keywords.lst
${tooldir}/normbgf c.raw.bgf c.ext.bgf
${tooldir}/subgrammar c.ext.bgf translation-unit c.bgf

build:
${tooldir}/pdf2bgf iso-is-annex.txt iso-output.bgf banned-lines.lst keywords.lst
${tooldir}/checkxml bgf iso-output.bgf
${tooldir}/normbgf iso-output.bgf iso-is-grammar.bgf
${tooldir}/subgrammar iso-is-grammar.bgf translation-unit iso-is-grammar-fix.bgf
rm -f iso-output.bgf

clean:
rm -f iso-is-grammar.bgf iso-is-grammar-fix.bgf intermediate.lll

test:
make build
${tooldir}/gdts iso-is-grammar.bgf extracted-grammar.bgf
${tooldir}/gdts iso-is-grammar-fix.bgf recovered-grammar.bgf
include ../../Makefile.include

0 comments on commit bbb2832

Please sign in to comment.