Something went wrong. Try again.
Actually just three programming languages in a trenchcoat
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930use super::*;use crate::{Parser, Spanned};use source_span::Span;use trilogy_scanner::{Token, TokenType::*};
#[derive(Clone, Debug, PrettyPrintSExpr)]pub struct IsExpression { pub is: Token, pub query: Query, span: Span,}
impl Spanned for IsExpression { fn span(&self) -> Span { self.span }}
impl IsExpression { pub(crate) fn parse(parser: &mut Parser) -> SyntaxResult<Self> { let is = parser.expect(KwIs).expect("Caller should have found this"); let query = Query::parse(parser)?; Ok(Self { span: is.span.union(query.span()), is, query, }) }}