Top Level Namespace
Defined Under Namespace
Modules: FAM
Classes: NULL, Object, String
Constant Summary
collapse
- EOF =
"\0"
- SIZES =
{
:B => 1e0, :kB => 1e3, :MB => 1e6,
:GB => 1e9, :TB => 1e12
}
Instance Method Summary
collapse
Instance Method Details
#ExpectedToken(name, token) ⇒ Object
32
33
34
35
|
# File 'lib/fam/error.rb', line 32
def ExpectedToken name, token
puts "\nExpected token: '#{name}', instead got: '#{token}' at line: #{token.line}:#{token.col}".red.bold
exit 1
end
|
#UnexpectedToken(token) ⇒ Object
27
28
29
30
|
# File 'lib/fam/error.rb', line 27
def UnexpectedToken token
puts "\nUnexpected token type: '#{token.type}', at line: #{token.line}:#{token.col}".red.bold
exit 1
end
|