pub struct LeanLanguage {}Expand description
Lean language definition.
Implementations§
Source§impl LeanLanguage
impl LeanLanguage
Trait Implementations§
Source§impl<'config> Builder<LeanLanguage> for LeanBuilder<'config>
impl<'config> Builder<LeanLanguage> for LeanBuilder<'config>
Source§fn build<'a, S: Source + ?Sized>(
&self,
source: &'a S,
edits: &[TextEdit],
cache: &'a mut impl BuilderCache<LeanLanguage>,
) -> OakDiagnostics<LeanRoot>
fn build<'a, S: Source + ?Sized>( &self, source: &'a S, edits: &[TextEdit], cache: &'a mut impl BuilderCache<LeanLanguage>, ) -> OakDiagnostics<LeanRoot>
Builds the higher-level structure (typically an AST) from the source text. Read more
Source§impl Clone for LeanLanguage
impl Clone for LeanLanguage
Source§fn clone(&self) -> LeanLanguage
fn clone(&self) -> LeanLanguage
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 LeanLanguage
impl Debug for LeanLanguage
Source§impl Default for LeanLanguage
impl Default for LeanLanguage
Source§impl<'de> Deserialize<'de> for LeanLanguage
impl<'de> Deserialize<'de> for LeanLanguage
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 Hash for LeanLanguage
impl Hash for LeanLanguage
Source§impl Language for LeanLanguage
impl Language for LeanLanguage
Source§const CATEGORY: LanguageCategory = LanguageCategory::Programming
const CATEGORY: LanguageCategory = LanguageCategory::Programming
The category of the language.
Source§type TokenType = LeanTokenType
type TokenType = LeanTokenType
The token type used to represent different token and node types in the language. Read more
Source§type ElementType = LeanElementType
type ElementType = LeanElementType
The element type used to represent composite structures in the parsed tree. Read more
Source§impl<'config> Lexer<LeanLanguage> for LeanLexer<'config>
impl<'config> Lexer<LeanLanguage> for LeanLexer<'config>
Source§fn lex<'a, S: Source + ?Sized>(
&self,
text: &'a S,
_edits: &[TextEdit],
cache: &'a mut impl LexerCache<LeanLanguage>,
) -> LexOutput<LeanLanguage>
fn lex<'a, S: Source + ?Sized>( &self, text: &'a S, _edits: &[TextEdit], cache: &'a mut impl LexerCache<LeanLanguage>, ) -> LexOutput<LeanLanguage>
Tokenizes the source text into a sequence of tokens. Read more
Source§impl<'config> Parser<LeanLanguage> for LeanParser<'config>
impl<'config> Parser<LeanLanguage> for LeanParser<'config>
Source§fn parse<'a, S: Source + ?Sized>(
&self,
text: &'a S,
edits: &[TextEdit],
cache: &'a mut impl ParseCache<LeanLanguage>,
) -> ParseOutput<'a, LeanLanguage>
fn parse<'a, S: Source + ?Sized>( &self, text: &'a S, edits: &[TextEdit], cache: &'a mut impl ParseCache<LeanLanguage>, ) -> ParseOutput<'a, LeanLanguage>
The core parsing entry point for converting tokens into a syntax tree. Read more
Source§impl PartialEq for LeanLanguage
impl PartialEq for LeanLanguage
Source§impl Serialize for LeanLanguage
impl Serialize for LeanLanguage
impl Copy for LeanLanguage
impl Eq for LeanLanguage
impl StructuralPartialEq for LeanLanguage
Auto Trait Implementations§
impl Freeze for LeanLanguage
impl RefUnwindSafe for LeanLanguage
impl Send for LeanLanguage
impl Sync for LeanLanguage
impl Unpin for LeanLanguage
impl UnsafeUnpin for LeanLanguage
impl UnwindSafe for LeanLanguage
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