mirror of
				https://github.com/Ed94/LangStudies.git
				synced 2025-10-31 15:00:56 -07:00 
			
		
		
		
	Fixed some formatting in notes.
This commit is contained in:
		| @@ -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: | ||||
| ``` | ||||
|   | ||||
| @@ -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->/ | ||||
| ``` | ||||
|   | ||||
| @@ -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)` | ||||
|   | ||||
		Reference in New Issue
	
	Block a user