blob: 3bbc5c8297fc13651a8cabe5edbc591c929fa69f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# FELan
A new programming language
# How to use
TO compile just run
```sh
./project compile
```
It would make an executable as `./build/felan`
Or you can compile and run with
```sh
./project run
```
Just like compile, it would make an executable as `./build/felan`
To run code just send your source file to the program like
```sh
felan some_path.felan
# or
./project run some_path.felan
```
# Examples
To print `Hello` with no new line
```felan
print("Hello")
```
To print `Hello` with a new line
```felan
print("Hello\n")
```
To comment one line you can use C++ style comments
```felan
// This is a comment
print("Hi comment"); // This is another comment
```
To comment a block you can use C style comments
```felan
/* This is a comment */
/* This is another /* comment but it is /* nested */ */ */
print("Hi comment"/* Here another one */);
```
|