turmali 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a69583d2a7925678fa9c48d77b797381222ddf1f
4
- data.tar.gz: 5a45ddc15b1641e8310116b3efa33d64d39f0218
3
+ metadata.gz: 75974b5214de62ac8e5c6f8d7adae49d6039834e
4
+ data.tar.gz: 67991b4258c5b5f2f90961c14f44f531a8f02f03
5
5
  SHA512:
6
- metadata.gz: 20a56029b2eee2414ea964de2fd6e6fe4f9e9eee2a1af1356941998bc1fce4a73e6aad02a56f3cc373dbbe73988f80815632bb027dca05218db5902f40664972
7
- data.tar.gz: 68d49e35f6fb59e1e856773b6b3f407a2d9e4c31ab05c27861b44e80f170d5f4db59491668fc98c8a2034e87b709e22c050cd41413baf88fd4c99d9a3d1cbc76
6
+ metadata.gz: c0216246bc2cc359ba1daf650a3e6ddbb1224c4c5950e7384f4d710f3e8935a5141d9af6cb816068c4984854303960ca8ebb9f338c4254a4aad461d14c919796
7
+ data.tar.gz: e38c41b1ac77d3d2f9aba43f5902d0d6f7524a71b943e2df1c22f3b04f86fa3a969b6d1527201ca43cab7e651fdddbd4245e2f29380b86e101e3c41740bb8bae
data/.gitignore CHANGED
@@ -10,3 +10,4 @@
10
10
 
11
11
  # rspec failure tracking
12
12
  .rspec_status
13
+ .DS_Store
data/README.md CHANGED
@@ -1,7 +1,20 @@
1
1
  # Turmali
2
2
 
3
+ ![Turmali Logo](turmali.png "Turmali Logo")
4
+
3
5
  Turmali is a website building language.
4
6
 
7
+ ▪ As in Python, blocks of code are delimited by their indentation.
8
+ ▪ Classes are declared with the class keyword.
9
+ ▪ Methods can be defined anywhere using the def keyword.
10
+ ▪ Identifiers starting with a capital letter are constants which are globally accessible.
11
+ ▪ Lower-case identifiers are local variables or method names.
12
+ ▪ If a method has a receiver and no argument, parenthesis can be skipped, much like in Ruby. Eg.: self.print is the same as self.print().
13
+ ▪ The last value evaluated in a method is its return value.
14
+ ▪ Everything is an object.
15
+
16
+ ## Example
17
+
5
18
  ```
6
19
  class Turmali:
7
20
  def name:
@@ -33,24 +46,8 @@ Or install it yourself as:
33
46
 
34
47
  ## Usage
35
48
 
36
- ```The Turmali language!
37
-
38
- usage:
39
- ./tml example.tml # to eval a file
40
- ./tml # to start the REPL
41
-
42
- on Windows run with: ruby -I. tml [options]
43
- ```
44
-
45
- ## Development
46
-
47
- After checking out the repo, run `rake spec` to run the tests. You can also run `bin/tml` for an interactive prompt that will allow you to experiment.
48
-
49
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
50
-
51
- ## Contributing
52
-
53
- Bug reports and pull requests are welcome on GitHub at https://github.com/eiffelqiu/turmali. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
49
+ $ tml example.tml
50
+ $ tml # on Windows run with: ruby -I. tml [options]
54
51
 
55
52
  ## License
56
53
 
@@ -1,3 +1,3 @@
1
1
  module Turmali
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
data/turmali.png ADDED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: turmali
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
  - Eiffel Qiu
@@ -60,7 +60,6 @@ executables:
60
60
  extensions: []
61
61
  extra_rdoc_files: []
62
62
  files:
63
- - ".DS_Store"
64
63
  - ".gitignore"
65
64
  - ".rspec"
66
65
  - ".travis.yml"
@@ -69,9 +68,7 @@ files:
69
68
  - README.md
70
69
  - Rakefile
71
70
  - bin/tml
72
- - lib/.DS_Store
73
71
  - lib/turmali.rb
74
- - lib/turmali/.DS_Store
75
72
  - lib/turmali/grammar.y
76
73
  - lib/turmali/interpreter.rb
77
74
  - lib/turmali/lexer.rb
@@ -84,6 +81,7 @@ files:
84
81
  - lib/turmali/runtime/object.rb
85
82
  - lib/turmali/version.rb
86
83
  - turmali.gemspec
84
+ - turmali.png
87
85
  homepage: https://github.com/eiffelqiu/turmali.
88
86
  licenses:
89
87
  - MIT
data/.DS_Store DELETED
Binary file
data/lib/.DS_Store DELETED
Binary file
Binary file