Compiles the given regex into a nondeterministic finite automata.
Parameters:
| Name | Type | Description |
|---|---|---|
str |
string | The regex to compile. |
accept |
number | The id of the symbol accepted. |
case_insensitive |
boolean | Whether the regex is case insensitive. |
cur_line |
number | The current line number being parsed. Used in error logging. |