Fixed some formatting in notes.

This commit is contained in:
Edward R. Gonzalez 2022-07-17 07:39:06 -04:00
parent 17c3b8fe36
commit 77e9e0431e
3 changed files with 7 additions and 8 deletions

View File

@ -1,9 +1,8 @@
# Basic NFA Fragments
### Single Character
RegExp: `/^A$/`
Psuedo:
`str.start glyph(A) str.end`
RegExp: `/^A$/`
Psuedo: `start A end`
^ : Beginning of string : Str.Start
$ : End of a string : Str.End
@ -13,7 +12,7 @@ Machine:
### Epsilon-Transition
RegExp: `/^$/`
Psuedo: `str.start str.end`
Psuedo: `start end`
Machine:
```

View File

@ -9,7 +9,7 @@ SRegEx: `x y.repeat(0-) | z`
### Stage 1: Union
```
->o.start (o)
->o.start (o)
\epsilon-> o --xy*-> o -epsilon-->/
\epsilon-> o --z---> o -epsilon->/
```

View File

@ -2,10 +2,10 @@
Ex:
RegEx : `/a+|[0-3]/`
RegEx : `/a+|[0-3]/`
SRegEx: `a.repeat(1-) | set(0-3)`
`A+` === `AA*` === `A.repeat(1-)` === `AA.repeat(0-)`
`A?` === `A|ε` === `A.repeat(0-1)`
`A+` === `AA*` === `A.repeat(1-)` === `AA.repeat(0-)`
`A?` === `A|ε` === `A.repeat(0-1)`
`[0-9]` === `0|1|2|3|4|5|6|7|8|9` === `set(0-9)`