ll-sparql-parser 2.1.0

A resilient LL parser for SPARQL
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::{parse_query, syntax_kind::SyntaxKind};

#[test]
fn parse_tokens_after() {
    let input = "SELECT * WHERE {} hay";
    let root = parse_query(input).0;
    assert!(matches!(
        root.last_token().unwrap().kind(),
        SyntaxKind::Error
    ));
}