vue3-core/packages/compiler-core/src/parser/index.ts

15 lines
305 B
TypeScript
Raw Normal View History

2023-11-12 16:58:24 +08:00
import { RootNode, createRoot } from '../ast'
import { ParserOptions } from '../options'
import { Parser } from './Parser'
export function baseParse(
content: string,
options: ParserOptions = {}
): RootNode {
const root = createRoot([])
new Parser({
// TODO
}).end(content)
return root
}