JustBash.Commands.Awk.Lexer (JustBash v0.4.0)
View SourceLexer for AWK programs.
Tokenizes AWK source code into a stream of tokens that can be consumed by the parser.
Summary
Functions
Tokenize an AWK program string into a list of tokens.
Types
@type token() :: {token_type(), value :: term(), line :: pos_integer(), column :: pos_integer()}
@type token_type() ::
:number
| :string
| :regex
| :ident
| :begin
| :end
| :if
| :else
| :while
| :do
| :for
| :in
| :break
| :continue
| :next
| :exit
| :return
| :delete
| :function
| :print
| :printf
| :getline
| :plus
| :minus
| :star
| :slash
| :percent
| :caret
| :eq
| :ne
| :lt
| :gt
| :le
| :ge
| :match
| :not_match
| :and
| :or
| :not
| :assign
| :plus_assign
| :minus_assign
| :star_assign
| :slash_assign
| :percent_assign
| :caret_assign
| :increment
| :decrement
| :question
| :colon
| :comma
| :semicolon
| :newline
| :lparen
| :rparen
| :lbrace
| :rbrace
| :lbracket
| :rbracket
| :dollar
| :append
| :pipe
| :eof