LangStudies/App/RegM/Lectures/Lecture.4.Notes.md

28 lines
404 B
Markdown
Raw Normal View History

# Basic NFA Fragments
### Single Character
2022-07-17 04:39:06 -07:00
RegExp: `/^A$/`
Psuedo: `start A end`
^ : Beginning of string : Str.Start
$ : End of a string : Str.End
Machine:
->o.*Start* ---**Glyph**---> (o).*Accepting*
### Epsilon-Transition
RegExp: `/^$/`
2022-07-17 04:39:06 -07:00
Psuedo: `start end`
Machine:
```
->o --epsilon--> (o)
```
Everyhing else can be built on top of these machines.
```
Start = Input, Accepting = Output
```