You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22-23Lines changed: 22 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,16 @@
1
-
As of 03/17/22, x2 is discontinued in favor of [Calcium](https://github.com/dm12332131md/calcium).
2
-
This repository will stay active for future reference.
3
-
4
1
# x2
5
2
6
-
## Welcome
3
+
## Introduction
4
+
5
+
Welcome to the official documentation for x2! This documentation will get you started in the development of your first x2 project or will help you learn more about x2 in general with in-depth explanations and tutorials.
7
6
8
-
Welcome to the official documentation of x2! This documentation will get you started in the development of your first x2 project or will help you learn more about x2 in general with in-depth explanations and tutorials.
7
+
If you're looking for a faster alternative to x2, check out [Calcium](https://github.com/Dm12332131mD/calcium). It's based around the same principles as x2, but written in C++ and fully OOP-compliant.
9
8
10
9
## Table of Contents
11
10
12
11
-**Home ▾**
13
-
-[Welcome](#welcome)
14
-
-[Table of Contents](#table-of-contents)
12
+
-[Introduction](#introduction)
13
+
-[ToC](#table-of-contents)
15
14
-[About](#about)
16
15
-[Getting Started ▾](#getting-started)
17
16
-[Step 1: Installation](#step-1-installation)
@@ -26,19 +25,20 @@ Welcome to the official documentation of x2! This documentation will get you sta
26
25
-[Python API](./md/pythonAPI.md)
27
26
-[Standard Library](./md/standardLibrary.md)
28
27
28
+
***Please note: current x2 documentation is likely invalid due to the release of x2.3r1!**
29
+
29
30
## About
30
31
31
-
x2 (Pronounced "ex-two") is a high-level, interpreted language written in Python by [iiPython](https://github.com/ii-Python/) with low-level programming language syntax, such as[x86 Assembly](https://en.wikipedia.org/wiki/X86_assembly_language) or [Batch](https://en.wikipedia.org/wiki/Batch_file).
32
+
x2 (Pronounced "ex-two") is a high-level, interpreted language written in Python by [iiPython](https://github.com/ii-Python/) with low-level programming language syntax, similar to that of[x86 Assembly](https://en.wikipedia.org/wiki/X86_assembly_language) or [Batch](https://en.wikipedia.org/wiki/Batch_file).
32
33
33
34
x2 contains features such as:
34
35
- Automatic Garbage Collection
35
-
- Scoped/Global Variables
36
-
- Public/Private Sections
37
-
- Functions and Methods
36
+
- Scoped/global Variables
37
+
- Sectioning/function system
38
38
- Python Integration
39
-
-Working Import/Export System
40
-
- Package System
41
-
- ...And more!
39
+
- Import/Export System
40
+
- Package Management System ([xpm](https://github.com/ii-Python/xpm); coming soon!)
41
+
- ... many more!
42
42
43
43
## Getting Started
44
44
@@ -62,21 +62,20 @@ If you are choosing Visual Studio Code as your Integrated Development Environmen
62
62
63
63
### Step 2: Set-Up
64
64
65
-
Once you open up your x2 project, you should be able to find a file named `main.xt`. By default, this is your main entry file and is where you will be writing your x2 code. Within the file, you should see:
65
+
Once you open up your x2 project, you should be able to find a file named `main.x2`. By default, this is your main entry file and is where you will be writing your x2 code. Within the file, you should see an example program similar to:
66
66
67
67
```xt
68
68
:: Main
69
-
:main
70
-
out "Hello, world!"
69
+
prt "Hello, world!"
71
70
```
72
71
73
-
Any x2 files should always end in the `.xt` extension. The main entry file should also always contain a `:main` section.
72
+
Any x2 files should always end in the `.x2` extension.
74
73
75
-
You can edit the main entry file by editing the configuration in `.xtconfig`. It is a JSON-like file that contains all the configurations for your x2 project. Within it, you should see:
74
+
You can edit the main entry file by editing the configuration in `.x2config`. It is a JSON-like file that contains all the configurations for your x2 project. Within it, you should see:
76
75
77
76
```xtconfig
78
77
{
79
-
"main": "main.xt"
78
+
"main": "main.x2"
80
79
}
81
80
```
82
81
@@ -115,7 +114,7 @@ You can publish your games and packages at [our website](https://x2.iipython.cf/
115
114
### Contributors
116
115
117
116
-[iiPython](https://github.com/ii-Python/) - Lead Developer
0 commit comments