pub struct WatLanguage {}Implementations§
Source§impl WatLanguage
impl WatLanguage
pub fn new() -> WatLanguage
Trait Implementations§
Source§impl Default for WatLanguage
impl Default for WatLanguage
Source§fn default() -> WatLanguage
fn default() -> WatLanguage
Returns the “default value” for a type. Read more
Source§impl Language for WatLanguage
impl Language for WatLanguage
Source§const CATEGORY: LanguageCategory = LanguageCategory::Dsl
const CATEGORY: LanguageCategory = LanguageCategory::Dsl
The category of the language.
Source§type TokenType = WatTokenType
type TokenType = WatTokenType
The token type used to represent different token and node types in the language. Read more
Source§type ElementType = WatElementType
type ElementType = WatElementType
The element type used to represent composite structures in the parsed tree. Read more
Source§impl<'config> Lexer<WatLanguage> for WatLexer<'config>
impl<'config> Lexer<WatLanguage> for WatLexer<'config>
Source§fn lex<'a, S>(
&self,
text: &'a S,
_edits: &[TextEdit],
cache: &'a mut impl LexerCache<WatLanguage>,
) -> OakDiagnostics<Arc<[Token<<WatLanguage as Language>::TokenType>]>>
fn lex<'a, S>( &self, text: &'a S, _edits: &[TextEdit], cache: &'a mut impl LexerCache<WatLanguage>, ) -> OakDiagnostics<Arc<[Token<<WatLanguage as Language>::TokenType>]>>
Tokenizes the given source text into a sequence of tokens. Read more
Source§impl<'config> Parser<WatLanguage> for WatParser<'config>
impl<'config> Parser<WatLanguage> for WatParser<'config>
Source§fn parse<'a, S>(
&self,
text: &'a S,
edits: &[TextEdit],
cache: &'a mut impl ParseCache<WatLanguage>,
) -> OakDiagnostics<&'a GreenNode<'a, WatLanguage>>
fn parse<'a, S>( &self, text: &'a S, edits: &[TextEdit], cache: &'a mut impl ParseCache<WatLanguage>, ) -> OakDiagnostics<&'a GreenNode<'a, WatLanguage>>
The core parsing entry point. Read more
Auto Trait Implementations§
impl Freeze for WatLanguage
impl RefUnwindSafe for WatLanguage
impl Send for WatLanguage
impl Sync for WatLanguage
impl Unpin for WatLanguage
impl UnwindSafe for WatLanguage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more