pub struct VonLanguage {
pub commentconfig: CommentConfig,
pub stringconfig: StringConfig,
pub whitespaceconfig: WhitespaceConfig,
}Expand description
Implementation of the VON language.
Fields§
§commentconfig: CommentConfigComment configuration.
stringconfig: StringConfigString configuration.
whitespaceconfig: WhitespaceConfigWhitespace configuration.
Implementations§
Source§impl VonLanguage
impl VonLanguage
Trait Implementations§
Source§impl<'config> Builder<VonLanguage> for VonBuilder<'config>
impl<'config> Builder<VonLanguage> for VonBuilder<'config>
Source§fn build<'a, S: Source + ?Sized>(
&self,
source: &S,
edits: &[TextEdit],
_cache: &'a mut impl BuilderCache<VonLanguage>,
) -> OakDiagnostics<VonRoot>
fn build<'a, S: Source + ?Sized>( &self, source: &S, edits: &[TextEdit], _cache: &'a mut impl BuilderCache<VonLanguage>, ) -> OakDiagnostics<VonRoot>
Builds the higher-level structure (typically an AST) from the source text. Read more
Source§impl Clone for VonLanguage
impl Clone for VonLanguage
Source§fn clone(&self) -> VonLanguage
fn clone(&self) -> VonLanguage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VonLanguage
impl Debug for VonLanguage
Source§impl Default for VonLanguage
impl Default for VonLanguage
Source§impl<'de> Deserialize<'de> for VonLanguage
impl<'de> Deserialize<'de> for VonLanguage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Language for VonLanguage
impl Language for VonLanguage
Source§const CATEGORY: LanguageCategory = LanguageCategory::Programming
const CATEGORY: LanguageCategory = LanguageCategory::Programming
The category of the language.
Source§type TokenType = VonTokenType
type TokenType = VonTokenType
The token type used to represent different token and node types in the language. Read more
Source§type ElementType = VonElementType
type ElementType = VonElementType
The element type used to represent composite structures in the parsed tree. Read more
Source§impl<'config> Lexer<VonLanguage> for VonLexer<'config>
impl<'config> Lexer<VonLanguage> for VonLexer<'config>
Source§fn lex<'a, S: Source + ?Sized>(
&self,
source: &'a S,
_edits: &[TextEdit],
_cache: &'a mut impl LexerCache<VonLanguage>,
) -> LexOutput<VonLanguage>
fn lex<'a, S: Source + ?Sized>( &self, source: &'a S, _edits: &[TextEdit], _cache: &'a mut impl LexerCache<VonLanguage>, ) -> LexOutput<VonLanguage>
Tokenizes the source text into a sequence of tokens. Read more
Source§impl<'config> Parser<VonLanguage> for VonParser<'config>
impl<'config> Parser<VonLanguage> for VonParser<'config>
Source§fn parse<'a, S: Source + ?Sized>(
&self,
source: &'a S,
edits: &[TextEdit],
cache: &'a mut impl ParseCache<VonLanguage>,
) -> ParseOutput<'a, VonLanguage>
fn parse<'a, S: Source + ?Sized>( &self, source: &'a S, edits: &[TextEdit], cache: &'a mut impl ParseCache<VonLanguage>, ) -> ParseOutput<'a, VonLanguage>
The core parsing entry point for converting tokens into a syntax tree. Read more
Source§impl PartialEq for VonLanguage
impl PartialEq for VonLanguage
Source§impl Serialize for VonLanguage
impl Serialize for VonLanguage
impl Eq for VonLanguage
impl StructuralPartialEq for VonLanguage
Auto Trait Implementations§
impl Freeze for VonLanguage
impl RefUnwindSafe for VonLanguage
impl Send for VonLanguage
impl Sync for VonLanguage
impl Unpin for VonLanguage
impl UnsafeUnpin for VonLanguage
impl UnwindSafe for VonLanguage
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