tildeath 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +674 -0
- data/README.md +4 -0
- data/bin/tildeath +28 -0
- data/bin/tildeath~ +28 -0
- data/bin/~ath~ +434 -0
- data/lib/tildeath.rb +2 -0
- data/lib/tildeath/ast_nodes.rb +10 -0
- data/lib/tildeath/ast_nodes/bang.rb +17 -0
- data/lib/tildeath/ast_nodes/bifurcate.rb +25 -0
- data/lib/tildeath/ast_nodes/dot_die.rb +18 -0
- data/lib/tildeath/ast_nodes/import.rb +22 -0
- data/lib/tildeath/ast_nodes/null.rb +11 -0
- data/lib/tildeath/ast_nodes/program.rb +22 -0
- data/lib/tildeath/ast_nodes/split.rb +25 -0
- data/lib/tildeath/ast_nodes/statements.rb +23 -0
- data/lib/tildeath/ast_nodes/tildeath.rb +29 -0
- data/lib/tildeath/ast_nodes/value.rb +17 -0
- data/lib/tildeath/imminently_deceased_object.rb +19 -0
- data/lib/tildeath/interpreter.rb +22 -0
- data/lib/tildeath/lexer.rb +70 -0
- data/lib/tildeath/parser.rb +136 -0
- data/lib/tildeath/tildeath_error.rb +11 -0
- data/lib/tildeath/token.rb +12 -0
- data/lib/tildeath/version.rb +3 -0
- metadata +69 -0
@@ -0,0 +1,12 @@
|
|
1
|
+
module Tildeath
|
2
|
+
class Token
|
3
|
+
attr_reader :name, :value, :line_number, :column
|
4
|
+
|
5
|
+
def initialize(name, line_number, column, value = nil)
|
6
|
+
@name = name
|
7
|
+
@value = value #only used by IDENT tokens, to store the actual identifier
|
8
|
+
@line_number = line_number
|
9
|
+
@column = column
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
metadata
ADDED
@@ -0,0 +1,69 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: tildeath
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Rob Steward
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-02-04 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: An esoteric language interpreter for the imminently deceased.
|
14
|
+
email: bobert_1234567890@hotmail.com
|
15
|
+
executables:
|
16
|
+
- tildeath
|
17
|
+
extensions: []
|
18
|
+
extra_rdoc_files: []
|
19
|
+
files:
|
20
|
+
- LICENSE
|
21
|
+
- README.md
|
22
|
+
- bin/tildeath
|
23
|
+
- bin/tildeath~
|
24
|
+
- bin/~ath~
|
25
|
+
- lib/tildeath.rb
|
26
|
+
- lib/tildeath/ast_nodes.rb
|
27
|
+
- lib/tildeath/ast_nodes/bang.rb
|
28
|
+
- lib/tildeath/ast_nodes/bifurcate.rb
|
29
|
+
- lib/tildeath/ast_nodes/dot_die.rb
|
30
|
+
- lib/tildeath/ast_nodes/import.rb
|
31
|
+
- lib/tildeath/ast_nodes/null.rb
|
32
|
+
- lib/tildeath/ast_nodes/program.rb
|
33
|
+
- lib/tildeath/ast_nodes/split.rb
|
34
|
+
- lib/tildeath/ast_nodes/statements.rb
|
35
|
+
- lib/tildeath/ast_nodes/tildeath.rb
|
36
|
+
- lib/tildeath/ast_nodes/value.rb
|
37
|
+
- lib/tildeath/imminently_deceased_object.rb
|
38
|
+
- lib/tildeath/interpreter.rb
|
39
|
+
- lib/tildeath/lexer.rb
|
40
|
+
- lib/tildeath/parser.rb
|
41
|
+
- lib/tildeath/tildeath_error.rb
|
42
|
+
- lib/tildeath/token.rb
|
43
|
+
- lib/tildeath/version.rb
|
44
|
+
homepage: https://github.com/filialpails/tildeath
|
45
|
+
licenses:
|
46
|
+
- GPL-3.0
|
47
|
+
metadata: {}
|
48
|
+
post_install_message:
|
49
|
+
rdoc_options: []
|
50
|
+
require_paths:
|
51
|
+
- lib
|
52
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '0'
|
57
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
requirements: []
|
63
|
+
rubyforge_project:
|
64
|
+
rubygems_version: 2.2.1
|
65
|
+
signing_key:
|
66
|
+
specification_version: 4
|
67
|
+
summary: An esoteric language interpreter for the imminently deceased.
|
68
|
+
test_files: []
|
69
|
+
has_rdoc:
|