pub fn keyword_supported(txt: &str, source: SourceSlice) -> MsgResult<Lexeme> {
    match Keyword::from_str(txt)? {
        Keyword::Reserved(word) => Err(ErrMsg::new(format!("Keyword '{}' not implemented", word))),
        kw => Ok(Lexeme::Keyword(KeywordLexeme::from_keyword(kw, source))),
    }
}
/// Parse a keyword, but fail if it a reserved keyword, rather than one that already works.
Parse a keyword, but fail if it a reserved keyword, rather than one that already works.
Parse a keyword but fail if it a reserved keyword rather than one that already works .
pub fn keyword_supported(txt: &str, source: SourceSlice) -> MsgResult<Lexeme> {
    match Keyword::from_str(txt)? {
        Keyword::Reserved(word) => Err(ErrMsg::new(format!("Keyword '{}' not implemented", word))),
        kw => Ok(Lexeme::Keyword(KeywordLexeme::from_keyword(kw, source))),
    }
}
pub fn keyword_supported ( txt : & str , source : SourceSlice ) -> MsgResult < Lexeme > { match Keyword :: from_str ( txt ) ? { Keyword :: Reserved ( word ) => Err ( ErrMsg :: new ( format ! ( " " word ) ) ) , kw => Ok ( Lexeme :: Keyword ( KeywordLexeme :: from_keyword ( kw , source ) ) ) , } }
Parse a keyword, but fail if it a reserved keyword, rather than one that already works.
Parse a keyword but fail if it a reserved keyword rather than one that already works .
txt
&str
source
SourceSlice
txt
&str
source
SourceSlice