From 6ecea40c849effd171c1d27c961f5c1ee100481f Mon Sep 17 00:00:00 2001 From: Martin Michalec Date: Sun, 8 Nov 2026 09:02:38 +0300 Subject: publish --- src/generate-grammar.c | 391 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 391 insertions(+) create mode 100644 src/generate-grammar.c (limited to 'src/generate-grammar.c') diff --git a/src/generate-grammar.c b/src/generate-grammar.c new file mode 100644 index 0000000..d4d0132 --- /dev/null +++ b/src/generate-grammar.c @@ -0,0 +1,391 @@ +#include +#include + +int +main (int argc, char *argv[]) +{ + FILE *fp = stdout; + + verb { + imperfective { + indicative { + present { + sg { + p1; + p2; + p3; + }; + pl { + p1; + p2; + p3; + }; + }; + past { + masculine { + sg { + p1; + p2; + p3; + }; + pl { + p1 { + animate; + inanimate; + }; + p2 { + animate; + inanimate; + }; + p3 { + animate; + inanimate; + }; + }; + }; + feminine { + sg { + p1; + p2; + p3; + }; + pl { + p1; + p2; + p3; + }; + }; + neuter { + sg { + p1; + p2; + p3; + }; + pl { + p1; + p2; + p3; + }; + }; + }; + future { + sg { + p1; + p2; + p3; + }; + pl { + p1; + p2; + p3; + }; + }; + }; + conditional { + present { + masculine { + sg { + p1; + p2; + p3; + }; + pl { + p1 { + animate; + inanimate; + }; + p2 { + animate; + inanimate; + }; + p3 { + animate; + inanimate; + }; + }; + }; + feminine { + sg { + p1; + p2; + p3; + }; + pl { + p1; + p2; + p3; + }; + }; + neuter { + sg { + p1; + p2; + p3; + }; + pl { + p1; + p2; + p3; + }; + }; + }; + past { + masculine { + sg { + p1; + p2; + p3; + }; + pl { + p1 { + animate; + inanimate; + }; + p2 { + animate; + inanimate; + }; + p3 { + animate; + inanimate; + }; + }; + }; + feminine { + sg { + p1; + p2; + p3; + }; + pl { + p1; + p2; + p3; + }; + }; + neuter { + sg { + p1; + p2; + p3; + }; + pl { + p1; + p2; + p3; + }; + }; + }; + }; + imperative { + sg { + p2; + }; + pl { + p1; + p2; + }; + }; + participle { + sg { + masculine; + feminine; + neuter; + }; + pl { + masculine { + animate; + inanimate; + }; + feminine; + neuter; + }; + }; + }; + perfective { + indicative { + present { + sg { + p1; + p2; + p3; + }; + pl { + p1; + p2; + p3; + }; + }; + past { + masculine { + sg { + p1; + p2; + p3; + }; + pl { + p1 { + animate; + inanimate; + }; + p2 { + animate; + inanimate; + }; + p3 { + animate; + inanimate; + }; + }; + }; + feminine { + sg { + p1; + p2; + p3; + }; + pl { + p1; + p2; + p3; + }; + }; + neuter { + sg { + p1; + p2; + p3; + }; + pl { + p1; + p2; + p3; + }; + }; + }; + }; + conditional { + present { + masculine { + sg { + p1; + p2; + p3; + }; + pl { + p1 { + animate; + inanimate; + }; + p2 { + animate; + inanimate; + }; + p3 { + animate; + inanimate; + }; + }; + }; + feminine { + sg { + p1; + p2; + p3; + }; + pl { + p1; + p2; + p3; + }; + }; + neuter { + sg { + p1; + p2; + p3; + }; + pl { + p1; + p2; + p3; + }; + }; + }; + past { + masculine { + sg { + p1; + p2; + p3; + }; + pl { + p1 { + animate; + inanimate; + }; + p2 { + animate; + inanimate; + }; + p3 { + animate; + inanimate; + }; + }; + }; + feminine { + sg { + p1; + p2; + p3; + }; + pl { + p1; + p2; + p3; + }; + }; + neuter { + sg { + p1; + p2; + p3; + }; + pl { + p1; + p2; + p3; + }; + }; + }; + }; + imperative { + sg { + p2; + }; + pl { + p1; + p2; + }; + }; + participle { + sg { + masculine; + feminine; + neuter; + }; + pl { + masculine { + animate; + inanimate; + }; + feminine; + neuter; + }; + }; + }; + }; + + return EXIT_SUCCESS; +} -- cgit v1.3.1