webql/compiler/parser/parse_nonstarter
Copy MarkdownValues
parse
pub fn parse(
source source: String,
tokens tokens: List(token.Token),
) -> Result(List(token.Token), diagnostic.Diagnostic)Handles non-starter tokens (ie. spaces and comments) that have no material effect on parsing. If the remaining tokens still are invalid, returns an unexpected token or EOF diagnostic.