Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nishtahir/alang
Tiny toy Interpreted language
https://github.com/nishtahir/alang
Last synced: 23 days ago
JSON representation
Tiny toy Interpreted language
- Host: GitHub
- URL: https://github.com/nishtahir/alang
- Owner: nishtahir
- Created: 2015-11-07T22:11:43.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-07T23:09:17.000Z (almost 9 years ago)
- Last Synced: 2024-04-16T12:46:43.907Z (9 months ago)
- Language: Java
- Homepage:
- Size: 80.1 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
ALang - A language
===================[![Build Status](https://travis-ci.org/nishtahir/ALang.svg?branch=master)](https://travis-ci.org/nishtahir/ALang)
A very tiny dynamically typed interpreted language.
#Features
~~~ python
#Alang is a dynamically typed language
#Just give a name and a value and you are
#ready to go.
hello := "world"
#Alang supports integers and strings
y := 42
#how to output things to console
println "Quick and easy"
# We have for loops with ranges
# 1 ~ 10 means from 1 to 10
for(i := 0 ~ 10) {
println(i)
}
#Lists are made this way
x := [3, 9, 4, 6, 5, 1, 6, 7, 8, 10, 2]
#Lists are also dynamically typed
#so you can have lists like this
x := ["Hello", 10]
~~~Getting started
---------------Dependencies:
* Java **1.7** or newer
#### Source
To build `ALang` from source, you need to have [Apache Maven](https://maven.apache.org) installed.
~~~ sh
$ git clone https://github.com/nishtahir/ALang.git
$ cd ALang
$ ./mvnw package
~~~The output of the build is located in the `target/ALang/bin/ALang` directory. To execute an `ALang` source file,
~~~ sh
$ cd target/ALang/bin
$ ./ALang [path to Alang source]
~~~#### Documentation
To generate Documentation, after **Source** step, you should issue command:
~~~ sh
$ ./mvnw site
~~~
and then generated documentation will be on following link: ALang/target/site/apidocs/index.htmlbut if you want UML diagrams to be included in your documentation, you need to have [graphviz](http://www.graphviz.org/) installed, before generating documentation. You can install graphviz via issuing following command:
~~~ sh
# Using apt
$ sudo apt-get install graphviz# Using Homebrew
$ brew install graphviz# Using chocolatey
C:\> choco install graphviz
~~~LICENSE
=======Copyright 2015 Nish Tahir
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.