Lexer
Custom Solidity Lexer that is used to generate tokens based on the provided solidity signature. This is not a fully solidity compatable Lexer.
Properties
struct {
position: u32
currentText: [:0]const u8
}
Init
Signature
pub fn init(text: [:0]const u8) Lexer
Reset
Signature
pub fn reset(
self: *Lexer,
newText: []const u8,
pos: ?u32,
) void
TokenSlice
Signature
pub fn tokenSlice(
self: *Lexer,
start: usize,
end: usize,
) []const u8
Scan
Signature
pub fn scan(self: *Lexer) Token