Crate vhdl_lang

Source

Modules§

ast

Macros§

expect_token
Expect any number of token kind patterns, return on no match with error diagnostic based on expected kinds
indented
indents the provided block and de-indents at the end.
peek_token
Expect any number of token kind patterns, return on no match with error diagnostic based on expected kinds
return_if_finished
return_if_found
try_init_token_kind
Expect any number of token kind patterns, return on no match with error diagnostic based on expected kinds

Structs§

AnyEnt
A named entity as defined in LRM 6.1.
Config
Diagnostic
EntHierarchy
EntityId
Latin1String
Message
MessagePrinter
NullDiagnostics
NullMessages
Object
An object or an interface object, example signal, variable, constant Is either an object (mode = None) or an interface object (mode = Some)
Position
A lexical position (line, column) in a source.
Project
Range
A lexical range in a source.
Reference
Encode an optional entity id using 8 bytes instead of 16 bytes
SeverityMap
The SeverityMap maps error codes to severities.
Source
A thread-safe reference to a source file. Multiple objects of this type can refer to the same source.
SourceFile
SrcPos
A lexical range within a specific source file.
Token
A Token
TokenId
A TokenId represents a unique value that is used to access a token. A token ID cannot be created directly by the user. Instead, the value must be taken from the AST.
TokenSpan
Holds token information about an AST element. Since the different pieces may be gathered in different locations, the fields are gated behind accessor functions which also check some invariants every time they are called.
VHDLFormatter
The formatter is the main entry point used for formatting a single Design Unit from AST representation to string representation. In that sense, the Formatter is the inverse to the Parser.
VHDLParser

Enums§

AnyEntKind
The kind of AnyEnt. This contains relevant information obtained during analysis.
CompletionItem
Concurrent
Design
InterfaceEnt
MessageType
Overloaded
Related
Sequential
Severity
Type
VHDLStandard

Traits§

HasEntityId
This trait is implemented for Ast-nodes which declare named entities
HasTokenSpan
AST elements for which it is necessary to get the underlying tokens can implement the HasTokenSpan trait. The trait provides getters for the start and end token.
MessageHandler
TokenAccess
A type that conforms to TokenAccess can be indexed using a TokenId. Convenience methods exist to directly get the SrcPos for a given TokenId or a span starting at a certain token and ending at another.

Functions§

kind_str
list_completion_options
Main entry point for completion. Given a source-file and a cursor position, lists available completion options at the cursor position.

Type Aliases§

EntRef
ParserResult