blob: a624dcb46d62283f6b52b7258f9bfed2cdb5cccf (
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
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# 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
./build/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 */);
```
Identifier symbols are a way to use keywords as identifier
```felan
`print`("Hello");
// This is the same as
print("Hello");
```
To define variables you can use : operator
```felan
helloVar:String = "hello";
print(helloVar);
```
|