This repository has been archived on 2026-04-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
AsaJS/src/compilers/Bindings.ts
2026-01-18 20:46:18 +07:00

14 lines
333 B
TypeScript

import bindings from "bindings"
import { Token } from "./bindings/types.js"
export const {
Lexer,
isBlankChar,
isWordChar,
isNumberChar,
}: {
Lexer: (input: string) => Token[]
isBlankChar: (char: string) => boolean
isWordChar: (char: string) => boolean
isNumberChar: (char: string) => boolean
} = bindings("asajs-compiler")