aboutsummaryrefslogtreecommitdiff
path: root/sem3/osc/mm11/opgaver.md
blob: 276236a950851a0607660d0a05bf59f19f11b683 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Opgave 1

Mange af dem er okay.

```
<program> ::= 'program''(' <ident> ')' <statementlist> 'end'.
<statementlist> ::= <statement> <statementlist> | e
<statement> ::= <ident> '=' <exp>;

<exp> ::= <term> <expB>
<expB> ::= <termopr> <term> <expB> | e

<term> ::= <factor> <termB>
<termB> ::= <factoropr> <factor> <termB> | e
<termopr> ::= '+' | '-'

<factor> ::= '(' <exp> ')' | <ident>
<factoropr> ::= '*' | '/'
```

# Opgave 2

Denne laver jeg måske senere.

# Opgave 3

Denne er løst i regn mappen. 
Kør `make run` deri for at køre.

# Opgave 4

I regn2 mappen