From 7c77ee39d5e3a41d5d74d32a3c3388f92998ae32 Mon Sep 17 00:00:00 2001 From: Julian T Date: Wed, 23 Oct 2019 15:37:00 +0200 Subject: =?UTF-8?q?Tilf=C3=B8jede=20en=20masse?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sem1/osc/mm11/opgaver.md | 25 +++++++++++++++++++++++++ sem1/osc/mm9/opgaver.md | 2 +- sem1/osc/noter.md | 11 +++++++++++ 3 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 sem1/osc/mm11/opgaver.md create mode 100644 sem1/osc/noter.md (limited to 'sem1/osc') diff --git a/sem1/osc/mm11/opgaver.md b/sem1/osc/mm11/opgaver.md new file mode 100644 index 0000000..09edad0 --- /dev/null +++ b/sem1/osc/mm11/opgaver.md @@ -0,0 +1,25 @@ +# Opgave 1 + +Mange af dem er okay. + +``` + ::= 'program''(' ')' 'end'. + ::= | e + ::= '=' ; + + ::= + ::= | e + + ::= + ::= | e + ::= '+' | '-' + + ::= '(' ')' | + ::= '*' | '/' +``` + +# Opgave 2 + +Denne laver jeg måske senere. + +# Opgave 3 diff --git a/sem1/osc/mm9/opgaver.md b/sem1/osc/mm9/opgaver.md index a16f069..fe2ec99 100644 --- a/sem1/osc/mm9/opgaver.md +++ b/sem1/osc/mm9/opgaver.md @@ -111,7 +111,7 @@ digit -> *0* | ... | *9* symbol -> letter | digit symList -> symbol symList | e exp -> term expB -exp -> termopr term expB | e +expB -> termopr term expB | e termOpr -> *+* | *-* term -> factor termB termB -> factorOpr factor termB | e diff --git a/sem1/osc/noter.md b/sem1/osc/noter.md new file mode 100644 index 0000000..92f875a --- /dev/null +++ b/sem1/osc/noter.md @@ -0,0 +1,11 @@ +# HUsk + +Ikke Deterministisk: Et stadie i kan føre til flere andre states. + +Undersøg **kontekst fri** + +Leksikal analysen: bruger regulær + +Parsing: ikke regulær. + +Shift-reduce parser. -- cgit v1.2.3