-
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
74 additions
and
71 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.
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,34 @@ | ||
.include "../../share/mk/top.mk" | ||
|
||
SRC += src/iso-ebnf/lexer.c | ||
SRC += src/iso-ebnf/parser.c | ||
SRC += src/iso-ebnf/output.c | ||
|
||
LEXER += src/iso-ebnf/lexer.lx | ||
PARSER += src/iso-ebnf/parser.sid | ||
|
||
PART += iso-ebnf | ||
|
||
.for src in ${LEXER:Msrc/iso-ebnf/lexer.lx} | ||
LX_CFLAGS.${src} += -b dyn -e lx_iso_ebnf_ -t TOK_ | ||
.endfor | ||
|
||
.for parser in ${PARSER:Msrc/iso-ebnf/parser.sid} | ||
ACT.${parser} = src/parser.act | ||
.endfor | ||
|
||
.for src in ${SRC:Msrc/iso-ebnf/lexer.c} | ||
CFLAGS.${src} += -D LX_HEADER='"lexer.h"' | ||
DFLAGS.${src} += -D LX_HEADER='"lexer.h"' | ||
.endfor | ||
|
||
.for src in ${SRC:Msrc/iso-ebnf/parser.c} | ||
CFLAGS.${src} += -D FORM='iso_ebnf' | ||
DFLAGS.${src} += -D FORM='iso_ebnf' | ||
.endfor | ||
|
||
.for src in ${SRC:Msrc/iso-ebnf/*.c} | ||
${BUILD}/lib/iso-ebnf.o: ${BUILD}/${src:R}.o | ||
${BUILD}/lib/iso-ebnf.opic: ${BUILD}/${src:R}.opic | ||
.endfor | ||
|
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,19 @@ | ||
/* | ||
* Copyright 2014-2017 Katherine Flavel | ||
* | ||
* See LICENCE for the full copyright terms. | ||
*/ | ||
|
||
#ifndef KGT_ISO_EBNF_IO_H | ||
#define KGT_ISO_EBNF_IO_H | ||
|
||
struct ast_rule; | ||
|
||
struct ast_rule * | ||
iso_ebnf_input(int (*f)(void *opaque), void *opaque); | ||
|
||
void | ||
iso_ebnf_output(const struct ast_rule *grammar); | ||
|
||
#endif | ||
|
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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
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