mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-04 00:32:51 -06:00
GF/src is now for 2.9, and the new sources are in src-3.0 - keep it this way until the release of GF 3
This commit is contained in:
31
src-3.0/tools/c/examples/bronzeage/bronzeage-test.c
Normal file
31
src-3.0/tools/c/examples/bronzeage/bronzeage-test.c
Normal file
@@ -0,0 +1,31 @@
|
||||
#include "Bronzeage.h"
|
||||
|
||||
#include "BronzeageEng.h"
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
int main() {
|
||||
Tree *tree =
|
||||
mk_PhrPos(
|
||||
mk_SentV(
|
||||
mk_lie_V(),
|
||||
mk_NumCN(
|
||||
mk_two_Num(),
|
||||
mk_UseN(mk_wife_N())
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
int i;
|
||||
|
||||
for (i = 0; i < 1000; i++) {
|
||||
Term *term;
|
||||
term = BronzeageEng_lin(tree);
|
||||
term_print(stdout, term);
|
||||
fputs("\n", stdout);
|
||||
}
|
||||
|
||||
tree_free(tree);
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user