-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
…lass (#226) ## Description - replaces module global for transition id counting with a proper counter class in the smcat parser ## Motivation and Context reduce footguns ## How Has This Been Tested? - [x] green ci ## Types of changes - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] Documentation only change - [x] Refactor (non-breaking change which fixes an issue without changing functionality) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change)
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import type { IStateMachine } from "types/state-machine-cat.mjs"; | ||
import { Counter } from "../../counter.mjs"; | ||
import { parse as pegParse } from "./smcat-parser.mjs"; | ||
|
||
export function parse(pScript: string): IStateMachine { | ||
return pegParse(pScript, { counter: new Counter() }); | ||
} |