pub struct CoqLanguage {}Expand description
Implementation of the Coq language for the OAK parsing framework.
Implementations§
Source§impl CoqLanguage
impl CoqLanguage
Trait Implementations§
Source§impl<'config> Builder<CoqLanguage> for CoqBuilder<'config>
impl<'config> Builder<CoqLanguage> for CoqBuilder<'config>
Source§fn build<'a, S: Source + ?Sized>(
&self,
source: &S,
edits: &[TextEdit],
_cache: &'a mut impl BuilderCache<CoqLanguage>,
) -> BuildOutput<CoqLanguage>
fn build<'a, S: Source + ?Sized>( &self, source: &S, edits: &[TextEdit], _cache: &'a mut impl BuilderCache<CoqLanguage>, ) -> BuildOutput<CoqLanguage>
Builds the structure from the source text.
Source§impl Clone for CoqLanguage
impl Clone for CoqLanguage
Source§fn clone(&self) -> CoqLanguage
fn clone(&self) -> CoqLanguage
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 CoqLanguage
impl Debug for CoqLanguage
Source§impl Default for CoqLanguage
impl Default for CoqLanguage
Source§fn default() -> CoqLanguage
fn default() -> CoqLanguage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CoqLanguage
impl<'de> Deserialize<'de> for CoqLanguage
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 CoqLanguage
impl Hash for CoqLanguage
Source§impl HoverProvider<CoqLanguage> for CoqHoverProvider
impl HoverProvider<CoqLanguage> for CoqHoverProvider
Source§impl Language for CoqLanguage
impl Language for CoqLanguage
Source§const CATEGORY: LanguageCategory = LanguageCategory::Programming
const CATEGORY: LanguageCategory = LanguageCategory::Programming
The category of the language.
Source§type TokenType = CoqSyntaxKind
type TokenType = CoqSyntaxKind
The token type used to represent different token and node types in the language. Read more
Source§type ElementType = CoqSyntaxKind
type ElementType = CoqSyntaxKind
The element type used to represent composite structures in the parsed tree. Read more
Source§impl<'config> Lexer<CoqLanguage> for CoqLexer<'config>
impl<'config> Lexer<CoqLanguage> for CoqLexer<'config>
Source§fn lex<'a, S: Source + ?Sized>(
&self,
text: &S,
_edits: &[TextEdit],
cache: &'a mut impl LexerCache<CoqLanguage>,
) -> LexOutput<CoqLanguage>
fn lex<'a, S: Source + ?Sized>( &self, text: &S, _edits: &[TextEdit], cache: &'a mut impl LexerCache<CoqLanguage>, ) -> LexOutput<CoqLanguage>
Tokenizes the given source text into a sequence of tokens. Read more
Source§impl<'config> Parser<CoqLanguage> for CoqParser<'config>
impl<'config> Parser<CoqLanguage> for CoqParser<'config>
Source§fn parse<'a, S: Source + ?Sized>(
&self,
text: &'a S,
edits: &[TextEdit],
cache: &'a mut impl ParseCache<CoqLanguage>,
) -> ParseOutput<'a, CoqLanguage>
fn parse<'a, S: Source + ?Sized>( &self, text: &'a S, edits: &[TextEdit], cache: &'a mut impl ParseCache<CoqLanguage>, ) -> ParseOutput<'a, CoqLanguage>
The core parsing entry point. Read more
Source§impl PartialEq for CoqLanguage
impl PartialEq for CoqLanguage
Source§impl Serialize for CoqLanguage
impl Serialize for CoqLanguage
impl Copy for CoqLanguage
impl Eq for CoqLanguage
impl StructuralPartialEq for CoqLanguage
Auto Trait Implementations§
impl Freeze for CoqLanguage
impl RefUnwindSafe for CoqLanguage
impl Send for CoqLanguage
impl Sync for CoqLanguage
impl Unpin for CoqLanguage
impl UnwindSafe for CoqLanguage
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