import { findGroupType } from '../tokenizer/vocabulary'; import { Token } from '../types/Token'; import { Section } from '../types/Section'; export function parseSection( lines: Token[] ): Section | null { const type = findGroupType( lines ); if( type === null ) return null; return { type, lines } }