From c0bc9c85f228ab2f130f29919617857209a22c1a Mon Sep 17 00:00:00 2001 From: aarneranta Date: Mon, 30 Mar 2026 17:28:42 +0200 Subject: [PATCH] lecture 1 examples --- lectures/lecture01/nano.cf | 13 +++++++++++++ lectures/lecture01/nanopar.cf | 19 +++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 lectures/lecture01/nano.cf create mode 100644 lectures/lecture01/nanopar.cf diff --git a/lectures/lecture01/nano.cf b/lectures/lecture01/nano.cf new file mode 100644 index 0000000..774e97d --- /dev/null +++ b/lectures/lecture01/nano.cf @@ -0,0 +1,13 @@ +S ::= NP VP ; +VP ::= V NP ; +NP ::= Det CN ; +CN ::= A CN ; +CN ::= N ; +NP ::= Pron ; + +Det ::= "the" ; +A ::= "black" ; +N ::= "cat" ; +V ::= "sees" ; +Pron ::= "us" ; + diff --git a/lectures/lecture01/nanopar.cf b/lectures/lecture01/nanopar.cf new file mode 100644 index 0000000..4371425 --- /dev/null +++ b/lectures/lecture01/nanopar.cf @@ -0,0 +1,19 @@ +S ::= NP_nom_sg VP_sg ; +S ::= NP_nom_pl VP_pl ; +VP_sg ::= V_sg NP_acc ; +VP_pl ::= V_pl NP_acc ; +NP_nom_sg ::= Det CN ; +NP_acc ::= Det CN ; +CN ::= A CN ; +CN ::= N ; +NP_nom_pl ::= Pron_nom_pl ; +NP_acc ::= Pron_acc ; + +Det ::= "the" ; +A ::= "black" ; +N ::= "cat" ; +V_sg ::= "sees" ; +V_pl ::= "see" ; +Pron_nom_pl ::= "we" ; +Pron_acc ::= "us" ; +