diff options
author | Julian T <julian@jtle.dk> | 2019-10-23 15:37:00 +0200 |
---|---|---|
committer | Julian T <julian@jtle.dk> | 2019-10-23 15:37:00 +0200 |
commit | 7c77ee39d5e3a41d5d74d32a3c3388f92998ae32 (patch) | |
tree | 0584e5f49069b5e5e9b2eb2c5c96a0181eb691aa /sem1/osc/mm11/opgaver.md | |
parent | 0b42016ade418b1a78db27143d028f6f27741798 (diff) |
Tilføjede en masse
Diffstat (limited to 'sem1/osc/mm11/opgaver.md')
-rw-r--r-- | sem1/osc/mm11/opgaver.md | 25 |
1 files changed, 25 insertions, 0 deletions
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> ::= '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 |