Skip to content

Commit d837fb4

Browse files
committed
v0.2.3
1 parent 618b112 commit d837fb4

File tree

3 files changed

+27
-65
lines changed

3 files changed

+27
-65
lines changed

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rock"
3-
version = "0.2.3-develop"
3+
version = "0.2.3"
44
authors = ["champii <contact@champii>"]
55
edition = "2018"
66

README.md

+25-63
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
<<<<<<< HEAD
2-
# Rock v0.2.2
3-
=======
4-
# Rock v0.2.3-develop
5-
>>>>>>> 18e4cf37e8bbce6723f212962ac1dbfc0c355a2f
1+
# Rock v0.2.3
62

73
[![Rust](https://github.com/Champii/Rock/actions/workflows/rust.yml/badge.svg?branch=-)](https://github.com/Champii/Rock/actions/workflows/rust.yml)
84

@@ -13,12 +9,9 @@ Rock is highly inspired from Livescript and Rust, and will also borrow (pun inte
139

1410
No to be taken seriously (yet)
1511

16-
<<<<<<< HEAD
17-
---
18-
1912
## Index
2013

21-
- [Rock v0.2.2](#rock-v022)
14+
- [Rock v0.2.3](#rock-v0.2.3)
2215
- [Index](#index)
2316
- [Features](#features)
2417
- [Install](#install)
@@ -32,30 +25,13 @@ No to be taken seriously (yet)
3225
- [Polymorphic function](#polymorphic-function)
3326
- [Custom infix operator](#custom-infix-operator)
3427
- [Trait Definition](#trait-definition)
35-
- [Struct instance and Show implementation](#struct-instance-and-show-implementation)
28+
- [Struct instance and methods]( #struct-instance-and-methods )
29+
- [Show implementation]( #show-implementation )
3630
- [Modules and Code Separation](#modules-and-code-separation)
3731
- [REPL](#repl)
3832
- [Development notes](#development-notes)
3933

4034
---
41-
=======
42-
# Index
43-
- [Features]( #features )
44-
- [Install]( #install )
45-
- [Using released binary]( #using-released-binary )
46-
- [With cargo from Git]( #with-cargo-from-git )
47-
- [From sources]( #from-sources )
48-
- [Quickstart]( #quickstart )
49-
- [Showcases]( #showcases )
50-
- [Polymorphic function]( #polymorphic-function )
51-
- [Custom infix operator]( #custom-infix-operator )
52-
- [Trait definition]( #trait-definition )
53-
- [Struct instance and methods]( #struct-instance-and-methods )
54-
- [Show implementation]( #show-implementation )
55-
- [Modules and code separation]( #modules-and-code-separation )
56-
- [REPL]( #repl )
57-
- [Development notes]( #development-notes )
58-
>>>>>>> 18e4cf37e8bbce6723f212962ac1dbfc0c355a2f
5935

6036
## Features
6137

@@ -75,23 +51,16 @@ Warning: This project has only been tested on Linux x86_64.
7551

7652
How to install and run the compiler:
7753

78-
### Using Released Binary
54+
### Using Released Binary
7955

8056
You will need `clang` somewhere in your $PATH
8157

8258
Linux x86_64 only
8359

84-
<<<<<<< HEAD
85-
[Rock v0.2.2](https://github.com/Champii/Rock/releases/download/v0.2.2/rock) (Tested on arch, btw)
60+
[Rock v0.2.3](https://github.com/Champii/Rock/releases/download/v0.2.3/rock) (Tested on arch, btw)
8661

8762
``` sh
88-
wget https://github.com/Champii/Rock/releases/download/v0.2.2/rock
89-
=======
90-
[Rock v0.2.3-develop](https://github.com/Champii/Rock/releases/download/v0.2.3-develop/rock) (Tested on arch, btw)
91-
92-
``` sh
93-
wget https://github.com/Champii/Rock/releases/download/v0.2.3-develop/rock
94-
>>>>>>> 18e4cf37e8bbce6723f212962ac1dbfc0c355a2f
63+
wget https://github.com/Champii/Rock/releases/download/v0.2.3/rock
9564
chmod +x rock
9665
./rock -V
9766
```
@@ -218,6 +187,8 @@ main =
218187
print id "Test"
219188
```
220189

190+
Prints
191+
221192
``` sh
222193
$ rock run
223194
1
@@ -261,9 +232,9 @@ $ rock run
261232
You can create any operator that is made of any combination of one or more of `'+', '-', '/', '*', '|', '<', '>', '=', '!', '$', '@', '&'`
262233

263234
Most of the commonly defined operators like `+`, `<=`, etc are already implemented by the [stdlib](https://github.com/Champii/Rock/tree/master/std) that is automaticaly compiled with every package.
264-
There is a `--nostd` option to allow you to use your own custom implementation.
235+
There is a `--nostd` option to allow you to use your own custom implementation.
265236

266-
### Trait Definition
237+
### Trait definition
267238

268239
This `trait ToString` is redondant with the `trait Show` implemented in the stdlib, and serves as a demonstration only
269240

@@ -284,12 +255,7 @@ main =
284255
```
285256

286257
``` sh
287-
rock run
288-
```
289-
290-
Prints:
291-
292-
```sh
258+
$ rock run
293259
33
294260
42.42
295261
```
@@ -314,15 +280,13 @@ main =
314280
```
315281

316282
``` sh
317-
rock run
283+
$ rock run
284+
1
318285
```
319286

320-
Prints `1`
321-
322-
323287
### Show implementation
324288

325-
```haskell
289+
``` haskell
326290
struct Player
327291
level :: Int64
328292
name :: String
@@ -340,12 +304,11 @@ main =
340304
```
341305

342306
``` sh
343-
rock run
307+
$ rock run
308+
MyName
344309
```
345310

346-
Prints `MyName`
347-
348-
### Modules and Code Separation
311+
### Modules and code separation
349312

350313
- `./myproj/src/foo.rk`
351314

@@ -363,12 +326,15 @@ use foo::bar
363326
main = print bar 1
364327
```
365328

366-
Prints `2`
329+
```sh
330+
$ rock run
331+
2
332+
```
367333

368334
Note that we could have skiped the
369335
`use foo::bar`
370336
if we wrote
371-
`main = print foo::bar 1`
337+
`main = print foo::bar 1`
372338

373339
## REPL
374340

@@ -381,7 +347,7 @@ This includes I/O of all sorts (Looking at you, open/read/write in loops)
381347
Note that the REPL expects to be run from the project root, and expects some version of the stdlib
382348
to be available in the `./src` folder
383349

384-
You can start a REPL session with
350+
You can start a REPL session with
385351

386352
``` sh
387353
rock -r
@@ -390,11 +356,7 @@ rock --repl
390356
```
391357

392358
``` sh
393-
<<<<<<< HEAD
394-
Rock: v0.2.2
395-
=======
396-
Rock: v0.2.3-develop
397-
>>>>>>> 18e4cf37e8bbce6723f212962ac1dbfc0c355a2f
359+
Rock: v0.2.3
398360
----
399361

400362
Type ':?' for help

0 commit comments

Comments
 (0)