Giter Site home page Giter Site logo

bauripalash / mewmew Goto Github PK

View Code? Open in Web Editor NEW
69.0 4.0 4.0 425 KB

/ᐠ。ꞈ。ᐟ\ MewMew Programming Language - Program in Cats' Language

Home Page: https://palashbauri.in/mewmew

License: MIT License

CMake 3.44% Makefile 1.31% C++ 80.50% ANTLR 7.55% Shell 6.48% TeX 0.72%
programming-language antlr4 cats esoteric-language open-source cpp interpreter hacktoberfest hacktoberfest2021

mewmew's Introduction

/ᐠ。ꞈ。ᐟ\ MewMew Programming Language

MewMew is dead. Checkout Mewl, program in cats' language

. . C/C++ CI Version 0.2b

Give a Star 🌟 to this project to support this project

/ᐠ。ꞈ。ᐟ\ MewMew 🐱 is an Esoteric Just for Fun programming language. You can program in cats' language with MewMew. Have Fun!

🎉 Get Started

😸 Integers

There's no concept of numbers (eg. 1 2 3 4 100) in MewMew, instead we use mews. 1 mew is equal to 1 , therefor mewmew = 2 , mewmewmew = 3 , mewmewmewmewmewmewmewmewmewmew = 10 and mew-mew = 0. (You got the Idea, right)

😸 Operators

MewMew supports a few types of operators =>

  • + -> Addition
  • - -> Subtraction
  • * -> Multiplication
  • / -> Division
  • ** -> Power
  • ~ -> Absolute Value
  • - -> Unary Minus
  • > -> Greater than
  • >= -> Greater than equal to
  • < -> Less than
  • <= -> Less than equal to
  • == -> Is Equal to
  • != -> Not Equal to
  • & -> And
  • | -> Or
  • % -> Modulus (Remainder)

😸 Identifiers

MewMew identifiers must start with an m and can contain zero or more consecutive _ and w. e cannot be used , because the interpreter can confuse it with a mew number.

😸 Assignment

ID = Expression

IDs will follow the rules of identifiers (above mentioned)

😸 Print aka. Meow Say

There's no keyword , to print we use the :: symbol, for example ::mewmew + mewmew outputs 4

😸 Print Char

Same as print , there's no keyword. It prints the ASCII char from the mew number given

::$ ####(mew) * mewmewmewmewmewmewmew + mewmew , Output = H

😸 If

CONDITION ? TRUTH_BODY ;

If statement of mewmew is very similar to ternary expression of C/C++.

😸 If Else

CONDITION ? TRUTH_BODY : ELSE_BODY ;

😸 Repeat Loop aka. Meow Loop

@TIMES : BODY ;

Where TIMES can be any mew number , and the BODY will be executed TIMES times.

😸 Scratch Functions

#MEWNUMBER (The '#' can be 1 to 5 consecutive times )

  • 1 # calculates square root of the expression
  • 2 # returns 2 times the given expression
  • 3 # returns 5 times the given expression
  • 4 # returns 10 times the given expression
  • 5 # returns 100 times the given expression

😸 Scan (Read Mew or Traditional Number from Stdin)

ID << ;

Where ID is an variable identifier. The user will be prompted for a formal or mewmew number.

😸 Comments

//

To write a comment , start the sentence with //

🎁 Example Programs:

(Two Examples are provided in the repo)

//Addition

m = mewmew + mewmewmew;
::m;

OUTPUT: 5
// Print All Numbers Divisible by 2 under 100
m = mew;
@#####(mew):
    m % mewmew == mew - mew ? ::m;;
    m = m+mew;

;

[TODO] □ Build the whole thing again □ Ditch C++, use plain C

📑 NOTEs:

  • MewMew is an esoteric language , it was never intended to be used for mainstream programming.
  • MewMew is only tested on Linux device (Ubuntu 18.04 x86_64). Building on Windows or MacOS should not be difficult , Please let me know , if you build it on either Windows or MacOs.

🔨 Building Yourself

🔩 Required

  • ANTLR4 JAR
  • ANTLR4 (C++) RUNTIME
  • GCC/G++
  • CMake

🔧 How to Build

  • Download & Setup ANTLR4 JAR (JAVA Runtime is Required to run ANTLR4)
  • Download ANTLR4 C++ Runtime , compile and setup
  • Fork , Clone this Repository
  • mkdir build && cd build
  • cmake ..
  • If Things are good. You'll have a executable binary file called mewmew

mewmew's People

Contributors

bauripalash avatar imgbotapp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

mewmew's Issues

]

mewmew/README.md

Lines 107 to 112 in f11618c

[TODO]
□ Build the whole thing again
□ Ditch C++, use plain C
## 📑 NOTEs:
* MewMew is an esoteric language , it was never intended to be used for mainstream programming.


This issue was generated by todo based on a TODO comment in f11618c when #7 was merged. cc @bauripalash.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.