jsonc-simple-parser
Version:
A simple JSON parser that supports comments and optional trailing commas.
21 lines (11 loc) • 285 B
text/typescript
/* IMPORT */
import type {AST} from '../types';
import Context from './context';
import parser from './parser';
/* MAIN */
const tokenize = ( text: string, limit?: number ): AST => {
Context.init ( limit );
return parser ( text );
};
/* EXPORT */
export default tokenize;