Class: Keisan::Tokens::Word

Inherits:
Keisan::Token show all
Defined in:
lib/keisan/tokens/word.rb

Constant Summary collapse

REGEX =
/([a-zA-Z_]\w*)/

Instance Attribute Summary

Attributes inherited from Keisan::Token

#string

Class Method Summary collapse

Methods inherited from Keisan::Token

#initialize, #regex, #type, type

Constructor Details

This class inherits a constructor from Keisan::Token

Class Method Details

.regexObject



6
7
8
# File 'lib/keisan/tokens/word.rb', line 6

def self.regex
  REGEX
end