ascode 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d712ba9af25e77e6acf89f0f9137acbeedaf2b08a1010a26164cb1de34958e0b
4
- data.tar.gz: 5dc2a36f933f7d4fb2aea9dd64e8962d131e81cec89f5f353c5cda7a6e3a7aa1
3
+ metadata.gz: 36af2df326ac831127e898ba681041454b8c04d05c64c5014691d3258274578e
4
+ data.tar.gz: 23630fab5a5ce66c39997c6ac162b48857db43862433933af26920342b9236f3
5
5
  SHA512:
6
- metadata.gz: 880cc7b6c155d26b243cedffe742639e79d374368f59fd5a01812373be18cfa58f9a26b2bec2a29c2acb24c236e0c1247090608ff5b87dd4af84d24ebc07c4db
7
- data.tar.gz: 66e0d7147bcb10494ed41e82f27b1008c19f6c559026002fa3ffc2fdaa1aea09317f0a266750082a1aea98ee8e64a9ef46fef67c8a2fcc52a694cd8c955bb852
6
+ metadata.gz: 74fd97af1f93c65bf953de537860dfb97b4fb2b3259152ae5691dddfe0b5c9dd754648cfc4fe96b6e275a9e63497c33df844b4d8765d2aacf58c6942826d34e5
7
+ data.tar.gz: 845a14e78448d55d440f4f7adfcb5de0846ded75b00bb306a26ed43f2404e5730e6760c2e53da8a5806c601a6572458e729a41cc8c659e26a201206e47f3166c
data/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2018 Artem Varaksa
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,4 @@
1
+ # ascode
2
+ [![gem](https://img.shields.io/gem/v/ascode.svg?style=flat-square)](https://rubygems.org/gems/ascode) <sup>(alpha)</sup>
3
+
4
+ > Esoteric golfing language
@@ -0,0 +1,12 @@
1
+ module Ascode
2
+ class Interpreter
3
+ def initialize(ast)
4
+ @ast = ast
5
+ end
6
+
7
+ def run
8
+ # TODO: Implement Ascode::Interpreter::run
9
+ # Run using @ast
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,14 @@
1
+ module Ascode
2
+ class Parser
3
+ def initialize(code)
4
+ @code = code
5
+ end
6
+
7
+ def parse
8
+ @code.split('').to_enum.each do |char|
9
+ # TODO: Implement Ascode::Parser::parse
10
+ # Parse @code and return an AST
11
+ end
12
+ end
13
+ end
14
+ end
data/lib/ascode.rb CHANGED
@@ -1,5 +1,5 @@
1
- require './ascode/interpreter.rb'
2
- require './ascode/parser.rb'
1
+ require_relative 'ascode/interpreter'
2
+ require_relative 'ascode/parser'
3
3
 
4
4
  module Ascode
5
5
  def self.run(code)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ascode
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artem Varaksa
@@ -16,7 +16,11 @@ executables: []
16
16
  extensions: []
17
17
  extra_rdoc_files: []
18
18
  files:
19
+ - LICENSE.md
20
+ - README.md
19
21
  - lib/ascode.rb
22
+ - lib/ascode/interpreter.rb
23
+ - lib/ascode/parser.rb
20
24
  homepage: https://github.com/sudoio/ascode
21
25
  licenses:
22
26
  - MIT