Docs.rs
solang-parser-0.3.2
solang-parser 0.3.2
Docs.rs crate page
Apache-2.0
Links
Homepage
Documentation
crates.io
Source
Owners
seanyoung
xermicus
LucasSte
salaheldinsoliman
Dependencies
itertools ^0.11
normal
lalrpop-util ^0.20.0
normal
phf ^0.11
normal
serde ^1.0
normal
thiserror ^1.0
normal
unicode-xid ^0.2
normal
pretty_assertions ^1.3
dev
regex ^1
dev
walkdir ^2.3.3
dev
lalrpop ^0.20.0
build
Versions
100%
of the crate is documented
Go to latest version
Platform
i686-pc-windows-msvc
i686-unknown-linux-gnu
x86_64-apple-darwin
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
☰
Module lexer
Structs
Enums
Functions
Type Definitions
?
Module
solang_parser
::
lexer
source
·
[
−
]
Expand description
Custom Solidity lexer.
Solidity needs a custom lexer for two reasons:
comments and doc comments
pragma value is
1
+
↩
Structs
Lexer
Custom Solidity lexer.
Enums
LexicalError
An error thrown by
Lexer
.
Token
A Solidity lexical token. Produced by
Lexer
.
Functions
is_keyword
Returns whether
word
is a keyword in Solidity.
Type Definitions
Result
Lexer
’s Result type.
Spanned
A spanned
Token
.