Skip to content

Python 编写的语法很像 Python 的编程语言(

License

Notifications You must be signed in to change notification settings

HBcao233/cathon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cathon

Cathon 是一款使用 Python 编写的自制编程语言, 其语法继承自 Python 语法, 并对其进行扩展

Cathon is a programming language written in Python, which grammar is inherited from Python.

Installing

require python >= 3.9

pip3 install cathon

Usage

Used by script

# Run in interactive mode
python -m cathon
cathon 

# Run a string cmd directly
cathon -c "print('hello world!')"

# Run a file
cathon tests/test.cat

# Run program read from stdin 
cat tests/test.cat | cathon

Used in python

import cathon 
# in a schedule

About

Python 编写的语法很像 Python 的编程语言(

Resources

License

Stars

Watchers

Forks

Languages