Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
PanJohnny committed Nov 20, 2022
0 parents commit 02fe3e3
Show file tree
Hide file tree
Showing 19 changed files with 788 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Project exclude paths
/target/
3 changes: 3 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/discord.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

124 changes: 124 additions & 0 deletions .idea/uiDesigner.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Weird esoteric cat emoji programming language
*Or: what am I doing with my life*

Check out hello.cats for hello world and hello.cats.meow for compiled version. Can be downloaded as jar and then used to generate and run code. This language is great, because you can comment everywhere.

.cats - not compiled

.cats.meow - compiled

## Challenge
Open issues with your own code in this language. Best submissions will be added in README.

## Actions
```
x++ increment cursor 😺
x-- decrement cursor 😿
i++ increment stack index 😽
i-- decrement stack index 🙀
x**2 power 😻
sqrt(x) sqrt 😾
x = 0 cursor set to 0 😼
if(x > {i--} x {i++}) x = 1 : x = 0 🐈
if(x==1) {} : {skipTo(😹)} 😸
<end_of_logic> 😹
<END> 💩
```
53 changes: 53 additions & 0 deletions hello.cats
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
H - 72 = 8**2 + 8
😺😺😺😺😺😺😺😺😻 +64
😺😺😺😺😺😺😺😺 +8
😽

E - 69 = 8**2 + 5
😺😺😺😺😺😺😺😺😻 +64
😺😺😺😺😺 +5
😽

L - 76 = 9**2 - 5
😺😺😺😺😺😺😺😺😺😻 +81
😿😿😿😿😿 -5
😽

L - 76 = 9**2 - 5
😺😺😺😺😺😺😺😺😺😻 +81
😿😿😿😿😿 -5
😽

O - 79 = 9**2 - 2
😺😺😺😺😺😺😺😺😺😻 +81
😿😿 -2
😽

SPACE - 32 = 6**2 - 4
😺😺😺😺😺😺😻 +36
😿😿😿😿 -4
😽

W - 87 = 9**2 + 6
😺😺😺😺😺😺😺😺😺😻 +81
😺😺😺😺😺😺 +6
😽

O - 79 = 9**2 - 2
😺😺😺😺😺😺😺😺😺😻 +81
😿😿 -2
😽

R - 82 = 9**2 + 1
😺😺😺😺😺😺😺😺😺😻 +81
😺 +1
😽

L - 76 = 9**2 - 5
😺😺😺😺😺😺😺😺😺😻 +81
😿😿😿😿😿 -5
😽

D - 69 = 8**2 + 4
😺😺😺😺😺😺😺😺😻 +64
😺😺😺😺 +4
1 change: 1 addition & 0 deletions hello.cats.meow
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
++++++++p++++++++>++++++++p+++++>+++++++++p----->+++++++++p----->+++++++++p-->++++++p---->+++++++++p++++++>+++++++++p-->+++++++++p+>+++++++++p----->++++++++p++++
25 changes: 25 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.panjohnny</groupId>
<artifactId>CatLang</artifactId>
<version>1.0-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>org.jetbrains</groupId>
<artifactId>annotations</artifactId>
<version>23.0.0</version>
<scope>compile</scope>
</dependency>
</dependencies>

<properties>
<maven.compiler.source>18</maven.compiler.source>
<maven.compiler.target>18</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

</project>
Loading

0 comments on commit 02fe3e3

Please sign in to comment.