diff options
Diffstat (limited to 'sem1/osc/mm10/opgaver.md')
-rw-r--r-- | sem1/osc/mm10/opgaver.md | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/sem1/osc/mm10/opgaver.md b/sem1/osc/mm10/opgaver.md new file mode 100644 index 0000000..781ee13 --- /dev/null +++ b/sem1/osc/mm10/opgaver.md @@ -0,0 +1,49 @@ +# MM10 + +## Opgave 1 + +A) + +<img src="./stateMachine.png"></img> + +B) + +Kan ses i den tilhørende lex fil. +For at compile kør: + +``` +make opg1 +``` + +C) + +``` +aabcd + +Fandt ting aabcd +yylex: 1 +``` + +``` +afggfd + +MehMehMehMehMehMeh +``` + +## Opgave 2 + +Regulære udtryk for: + +``` +c kommentarer: \/\/.*\n +real konstant: [-+]?[0-9]*(\.[0-9]+)?(e\+[0-9]+)? +starter med store: [A-Z][a-zA-z]+ +``` + +## Opgave 3 + +Dette laver jeg i opg3.l filen. + + + + |