Record

Token

Module PuduLangDocgen.Api.Lexer

type Token = {
  kind: TokenKind,
  text: Str,
  line: Int
}

View source

One token with its kind, text, and one-based line

Fields

Name Type Description
kind TokenKind
text Str
line Int
Name Description
tokens Tokens of a source file; ordinary comments and white space are dropped.