Chemical
Dark
Light
Paper
Themes
Dark
Light
Paper
Modules
cstd
core
std
compiler
compiler_runtime
lab
transformer
atomic
async
crashsave
osrand
crypto
encoding
bcrypt
uuid
regex
datetime
path
fs
compression
archive
image
audio
font
mime
json
html_comp
html_parser
html
ide
minlsp
html_ide
css_parser
css
css_ide
js_syntax
universal_parser
js_parser
js
js_cbi_lexer
js_ide
md_parser
md
md_ide
universal
universal_ide
page
net
tls
http
server
environment
process
window
webview
docgen
test_env
test
api
Lexer.ch
Declarations in
Lexer.ch
4
declarations
compiler
Declarations
Public only
LexerState
#
Public
struct
struct
LexerState {
var
other_mode : bool
var
user_mode : bool }
UserLexerSubroutineType
#
Public
typealias
type
UserLexerSubroutineType = func(&void, &
Lexer
) :
Token
UserLexerFn
#
Public
struct
struct
UserLexerFn {
var
instance : *void
var
subroutine :
UserLexerSubroutineType
}
Lexer
#
Public
struct
struct
Lexer :
LexerState
{
var
provider :
SourceProvider
var
user_lexer :
UserLexerFn
}
getFileAllocator
#
Public
function
func
getFileAllocator(self : &
Lexer
) : *
BatchAllocator
copy
setUserLexer
#
Public
function
func
setUserLexer(self : &
Lexer
, instance : *void, subroutine :
UserLexerSubroutineType
) : void
copy
unsetUserLexer
#
Public
function
func
unsetUserLexer(self : &
Lexer
) : void
copy
getEmbeddedToken
#
Public
function
func
getEmbeddedToken(self : &
Lexer
) :
Token
copy
Show Debug Info
Generated from: /home/runner/work/chemical/chemical/chemical-tcc/libs/compiler/src/Lexer.ch
File ID: 160
↑