Class Farts::Lexer
In: lib/farts/farts_lexer.rb
Parent: StringScanner
SyntaxNode
LiteralSyntaxNode
ProgramSyntaxNode
CallSyntaxNode
CommentSyntaxNode
EndSyntaxNode
AttributeSyntaxNode
LocalVarSyntaxNode
IfSyntaxNode
CommandSyntaxNode
Racc::Parser
Parser
StringScanner
Lexer
Interpreter
Lib
Farts
Module: Farts

The Lexer class converts the text of a program to tokens

token
is the current token being assembled

Methods

lineno   new   next_token   tokenpos  

Constants

Keywords = %w(if else endif and or end args actor this true false)   Table of keywords and token type values

Public Class methods

Public Instance methods

[Validate]