turmali 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 +4 -4
- data/.gitignore +1 -0
- data/README.md +15 -18
- data/lib/turmali/version.rb +1 -1
- data/turmali.png +0 -0
- metadata +2 -4
- data/.DS_Store +0 -0
- data/lib/.DS_Store +0 -0
- data/lib/turmali/.DS_Store +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 75974b5214de62ac8e5c6f8d7adae49d6039834e
|
4
|
+
data.tar.gz: 67991b4258c5b5f2f90961c14f44f531a8f02f03
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0216246bc2cc359ba1daf650a3e6ddbb1224c4c5950e7384f4d710f3e8935a5141d9af6cb816068c4984854303960ca8ebb9f338c4254a4aad461d14c919796
|
7
|
+
data.tar.gz: e38c41b1ac77d3d2f9aba43f5902d0d6f7524a71b943e2df1c22f3b04f86fa3a969b6d1527201ca43cab7e651fdddbd4245e2f29380b86e101e3c41740bb8bae
|
data/.gitignore
CHANGED
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
|
-
|
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
|
|
data/lib/turmali/version.rb
CHANGED
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.
|
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
|
data/lib/turmali/.DS_Store
DELETED
Binary file
|