This release is a pre-release and may not be stable for production use.
Natsulang text processing language
This is a small text processing language based on Python 3. It is now being used in a software called CJCMCG.
Example
Recently, a Chinese book called <平安经> is hot on the Internet. All sentences in this book is in the format of **平安. The most famous paragraph translated in English is like this:
Born safe. One month safe. 100 days safe. 1 year old safe. 2 years old safe. 3 years old safe. 4 years old safe. 5 years
old safe. 6 years old safe. 7 years old safe. 8 years old safe. 9 years old safe. 10 years old safe...
In Chinese, the paragraph is:
初生平安,满月平安,百天平安,1岁平安,2岁平安,3岁平安,4岁平安,5岁平安,6岁平安,7岁平安,8岁平安,9岁平安,10岁平安...
This paragraph is so tidy, that it can be generated with programs. Using natsulang, you can generate this paragraph like below:
初生平安,满月平安,百天平安{s="";for(i:range(1,121))(s+=","+str(i)+"岁平安");s}。
Maybe you are headache with your math proofs. This is not a problem in Natsulang. Just use the following program:
Input what you want to proof: {name=input();}
Proof:
Proposition A: {name}
Proposition B: Proposition C is false.
Proposition C: At lease one proposition between A and B is true.
Lemma 1: Proposition C is true
Proof: If C is false, then A and B is both false, and B is false, then C is true. This contradicts.
Now start proof:
If A is false, since C is true, B is true, and C is false. This contradicts. So A is true, i.e., {name}
Q.E.D
Can you find how this program works?
Run Natsulang
First, you need to download Python 3 and install. If you're using Windows, you need to add Python 3 to Path.
Then, type pip install natsulang in the terminal, and wait for it complete.
Finally, type natsulang in the terminal. If no error occurs, the installation is success.
If you need to upgrade natsulang, please use pip install --upgrade natsulang.
Learn
You can learn Natsulang here.
English tutorials are preparing, please wait for some time.
Release files for natsulang 1.0.0b11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| natsulang-1.0.0b11.tar.gz | 8.8 kB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| natsulang-1.0.0b11-py3.8.egg | Legacy Egg format | - | - | Details |
| natsulang-1.0.0b11-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.5 kB
Release files / natsulang-1.0.0b11.tar.gz
| Download URL | natsulang-1.0.0b11.tar.gz |
|---|---|
| Size | 8.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b4fdd53638082463da2b391cd04c4649360c96fd3fc295eba65424efa2e7d8e5
|
|
BLAKE2b-256 checksum How to use checksums |
777114536d5f8d54b4b75cec13304769ac9267c93b446393060b04ede2ad6b78
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
|
Release files / natsulang-1.0.0b11-py3.8.egg
| Download URL | natsulang-1.0.0b11-py3.8.egg |
|---|---|
| Size | 7.3 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
a2049b217c442779c4c46c00cd60305584ecd322ee9be4b8022b8f9c0a1e6933
|
|
BLAKE2b-256 checksum How to use checksums |
5dc4cb466c111a86b398ceee4d64106d31773ebf9f70da5cd462c065ffc4f956
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
|
Release files / natsulang-1.0.0b11-py3-none-any.whl
| Download URL | natsulang-1.0.0b11-py3-none-any.whl |
|---|---|
| Size | 8.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
808a2763136b8e85fa56613ef722eaf0dc11ccc702a14616300e40f0aa9fc516
|
|
BLAKE2b-256 checksum How to use checksums |
a9e130436688c6161d056c0fb08b7f293b6c807c1d6536f0c62958d3ed4d0c74
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
|