pub struct PurescriptLanguage {
pub config: (),
}Expand description
PureScript language implementation.
Fields§
§config: ()Language configuration.
Trait Implementations§
Source§impl Clone for PurescriptLanguage
impl Clone for PurescriptLanguage
Source§fn clone(&self) -> PurescriptLanguage
fn clone(&self) -> PurescriptLanguage
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 PurescriptLanguage
impl Debug for PurescriptLanguage
Source§impl Default for PurescriptLanguage
impl Default for PurescriptLanguage
Source§impl Hash for PurescriptLanguage
impl Hash for PurescriptLanguage
Source§impl Language for PurescriptLanguage
impl Language for PurescriptLanguage
Source§const CATEGORY: LanguageCategory = LanguageCategory::Programming
const CATEGORY: LanguageCategory = LanguageCategory::Programming
The category of the language.
Source§type TokenType = PurescriptTokenType
type TokenType = PurescriptTokenType
The token type used to represent different token and node types in the language. Read more
Source§type ElementType = PurescriptElementType
type ElementType = PurescriptElementType
The element type used to represent composite structures in the parsed tree. Read more
Source§impl<'config> Lexer<PurescriptLanguage> for PurescriptLexer<'config>
impl<'config> Lexer<PurescriptLanguage> for PurescriptLexer<'config>
Source§fn lex<'a, S: Source + ?Sized>(
&self,
source: &'a S,
_edits: &[TextEdit],
cache: &'a mut impl LexerCache<PurescriptLanguage>,
) -> LexOutput<PurescriptLanguage>
fn lex<'a, S: Source + ?Sized>( &self, source: &'a S, _edits: &[TextEdit], cache: &'a mut impl LexerCache<PurescriptLanguage>, ) -> LexOutput<PurescriptLanguage>
Tokenizes the source text into a sequence of tokens. Read more
Source§impl<'config> Parser<PurescriptLanguage> for PurescriptParser<'config>
impl<'config> Parser<PurescriptLanguage> for PurescriptParser<'config>
Source§fn parse<'a, S: Source + ?Sized>(
&self,
text: &'a S,
edits: &[TextEdit],
cache: &'a mut impl ParseCache<PurescriptLanguage>,
) -> ParseOutput<'a, PurescriptLanguage>
fn parse<'a, S: Source + ?Sized>( &self, text: &'a S, edits: &[TextEdit], cache: &'a mut impl ParseCache<PurescriptLanguage>, ) -> ParseOutput<'a, PurescriptLanguage>
The core parsing entry point for converting tokens into a syntax tree. Read more
Source§impl PartialEq for PurescriptLanguage
impl PartialEq for PurescriptLanguage
Source§impl<'config> Pratt<PurescriptLanguage> for PurescriptParser<'config>
impl<'config> Pratt<PurescriptLanguage> for PurescriptParser<'config>
Source§fn primary<'a, S: Source + ?Sized>(
&self,
state: &mut ParserState<'a, PurescriptLanguage, S>,
) -> &'a GreenNode<'a, PurescriptLanguage>
fn primary<'a, S: Source + ?Sized>( &self, state: &mut ParserState<'a, PurescriptLanguage, S>, ) -> &'a GreenNode<'a, PurescriptLanguage>
Parses a primary expression (e.g., literals, identifiers, group).
Source§fn prefix<'a, S: Source + ?Sized>(
&self,
state: &mut ParserState<'a, PurescriptLanguage, S>,
) -> &'a GreenNode<'a, PurescriptLanguage>
fn prefix<'a, S: Source + ?Sized>( &self, state: &mut ParserState<'a, PurescriptLanguage, S>, ) -> &'a GreenNode<'a, PurescriptLanguage>
Handles prefix operators and primary expressions. Read more
Source§fn infix<'a, S: Source + ?Sized>(
&self,
state: &mut ParserState<'a, PurescriptLanguage, S>,
left: &'a GreenNode<'a, PurescriptLanguage>,
min_precedence: u8,
) -> Option<&'a GreenNode<'a, PurescriptLanguage>>
fn infix<'a, S: Source + ?Sized>( &self, state: &mut ParserState<'a, PurescriptLanguage, S>, left: &'a GreenNode<'a, PurescriptLanguage>, min_precedence: u8, ) -> Option<&'a GreenNode<'a, PurescriptLanguage>>
Handles infix and postfix operators. Read more
impl Copy for PurescriptLanguage
impl Eq for PurescriptLanguage
impl StructuralPartialEq for PurescriptLanguage
Auto Trait Implementations§
impl Freeze for PurescriptLanguage
impl RefUnwindSafe for PurescriptLanguage
impl Send for PurescriptLanguage
impl Sync for PurescriptLanguage
impl Unpin for PurescriptLanguage
impl UnsafeUnpin for PurescriptLanguage
impl UnwindSafe for PurescriptLanguage
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