-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug fix in type keyword searching, fromConfig export
- Loading branch information
Seva D
committed
Jan 8, 2024
1 parent
71117eb
commit 8a334da
Showing
3 changed files
with
12 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
import { parseInput } from './parser.js'; | ||
import { traverseResult } from './visitor.js'; | ||
import { createMany } from './createStruct.js'; | ||
import { createMany, create } from './createStruct.js'; | ||
import { currentArch } from './currentArch.js'; | ||
|
||
export function compile(str, arch = currentArch, BufferImpl = Buffer) { | ||
return createMany(traverseResult(parseInput(str).cstOutput), arch, BufferImpl); | ||
} | ||
|
||
export function fromConfig(config, arch = currentArch, BufferImpl = Buffer) { | ||
return create(config, arch, BufferImpl); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters