mirror of https://github.com/vuejs/core.git
15 lines
305 B
TypeScript
15 lines
305 B
TypeScript
|
|
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
|
||
|
|
}
|