Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (12 sloc) 690 Bytes
http://github.com/BNFC/bnfc
https://github.com/BNFC/bnfc/tree/master/examples/C
https://github.com/BNFC/bnfc/blob/383d1a64fa799554d2d786d0b437ab15e5a93d8e/examples/C/C_with_delimiters.cf
C_with_delimiters.cf
Modified Ansi C grammar to make use of delimiter pragmas (used in the CNF backend).
Ansi C, following Kernighan & Ritchie (Second Edition).
(c) Ulf Persson 2003
part of BSc thesis at Chalmers University of Technology
NOTICE: the C program may need to be preprocessed by cpp. Also types defined
by typedefs have to be eliminated (these are known problems with the
BNF grammar of Ansi C).
Grammar in a broad sense fetched automatically by Vadim Zaytsev, http://grammarware.net