pub struct CrystalLanguage {}Expand description
Crystal language implementation.
Implementations§
Trait Implementations§
Source§impl<'config> Builder<CrystalLanguage> for CrystalBuilder<'config>
impl<'config> Builder<CrystalLanguage> for CrystalBuilder<'config>
Source§fn build<'a, S: Source + ?Sized>(
&self,
source: &'a S,
edits: &[TextEdit],
_cache: &'a mut impl BuilderCache<CrystalLanguage>,
) -> BuildOutput<CrystalLanguage>
fn build<'a, S: Source + ?Sized>( &self, source: &'a S, edits: &[TextEdit], _cache: &'a mut impl BuilderCache<CrystalLanguage>, ) -> BuildOutput<CrystalLanguage>
Builds the higher-level structure (typically an AST) from the source text. Read more
Source§impl Clone for CrystalLanguage
impl Clone for CrystalLanguage
Source§fn clone(&self) -> CrystalLanguage
fn clone(&self) -> CrystalLanguage
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 CrystalLanguage
impl Debug for CrystalLanguage
Source§impl Default for CrystalLanguage
impl Default for CrystalLanguage
Source§fn default() -> CrystalLanguage
fn default() -> CrystalLanguage
Returns the “default value” for a type. Read more
Source§impl Hash for CrystalLanguage
impl Hash for CrystalLanguage
Source§impl Language for CrystalLanguage
impl Language for CrystalLanguage
Source§const CATEGORY: LanguageCategory = LanguageCategory::Programming
const CATEGORY: LanguageCategory = LanguageCategory::Programming
The category of the language.
Source§type TokenType = CrystalTokenType
type TokenType = CrystalTokenType
The token type used to represent different token and node types in the language. Read more
Source§type ElementType = CrystalElementType
type ElementType = CrystalElementType
The element type used to represent composite structures in the parsed tree. Read more
Source§type TypedRoot = CrystalRoot
type TypedRoot = CrystalRoot
The root type for the parsed tree that represents the top-level structure of the language. Read more
Source§impl<'config> Lexer<CrystalLanguage> for CrystalLexer<'config>
impl<'config> Lexer<CrystalLanguage> for CrystalLexer<'config>
Source§fn lex<'a, S: Source + ?Sized>(
&self,
source: &'a S,
_edits: &[TextEdit],
cache: &'a mut impl LexerCache<CrystalLanguage>,
) -> LexOutput<CrystalLanguage>
fn lex<'a, S: Source + ?Sized>( &self, source: &'a S, _edits: &[TextEdit], cache: &'a mut impl LexerCache<CrystalLanguage>, ) -> LexOutput<CrystalLanguage>
Tokenizes the source text into a sequence of tokens. Read more
Source§impl<'config> Parser<CrystalLanguage> for CrystalParser<'config>
impl<'config> Parser<CrystalLanguage> for CrystalParser<'config>
Source§fn parse<'a, S: Source + ?Sized>(
&self,
text: &'a S,
edits: &[TextEdit],
cache: &'a mut impl ParseCache<CrystalLanguage>,
) -> ParseOutput<'a, CrystalLanguage>
fn parse<'a, S: Source + ?Sized>( &self, text: &'a S, edits: &[TextEdit], cache: &'a mut impl ParseCache<CrystalLanguage>, ) -> ParseOutput<'a, CrystalLanguage>
The core parsing entry point for converting tokens into a syntax tree. Read more
Source§impl PartialEq for CrystalLanguage
impl PartialEq for CrystalLanguage
impl Copy for CrystalLanguage
impl Eq for CrystalLanguage
impl StructuralPartialEq for CrystalLanguage
Auto Trait Implementations§
impl Freeze for CrystalLanguage
impl RefUnwindSafe for CrystalLanguage
impl Send for CrystalLanguage
impl Sync for CrystalLanguage
impl Unpin for CrystalLanguage
impl UnsafeUnpin for CrystalLanguage
impl UnwindSafe for CrystalLanguage
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