Skip to main content

Crate gosyn

Crate gosyn 

Source

Modules§

ast
Define all golang syntax node
token
Define all golang syntax token

Structs§

LexicalToken
A lexical token and its range in the source text.
Parser

Enums§

Error
indicates all possible errors during parsing

Functions§

parse_dir
parse a directory to packages
parse_file
parse source code from given path to ast::File
parse_source
parse source code to ast::File
tokenize_source
Tokenize Go source and return each token with its source range.