//! `none`.
use crate::ast::{Expr, ExprKind};
use crate::parser::{PResult, Parser};
use crate::words::{Role, Word};
pub static WORD: Word = Word {
text: "none",
doc: "No value: what an optional (`Player?`) holds when there's nothing.",
reserved: true,
roles: &[Role::Prefix { starts: None, parse }],
};
fn parse(p: &mut Parser) -> PResult<Expr> {
let span = p.bump().span;
Ok(Expr { kind: ExprKind::None, span })
}