Coder Social home page Coder Social logo

ctack's Introduction

👋 Hi there! I'm Alihan SARAÇ

👇For more information, contact to me. 👇

🤠About Me🤠 🔗Contact🔗
Full Stack Developer saracalihan.com
Web, IOT, Robotic Twitter
Istanbul-TURKEY Mail
Swimming, Kickbox, RC Toys LinkedIn
Pronouns: He/Him Kommunity

ctack's People

Contributors

saracalihan avatar

Watchers

 avatar

ctack's Issues

Variant type

Currently, we have only integer type. We need to do more type but I want to implement dynamically typed variables called variants. Variant has that types:

  • int
  • string (char is simply string)
  • bool
  • null

Also, arithmetic operators must be updated for dynamic type transformation and operations

[Propsal] Variabels

Users can declare a variable with a name and default value. Variables have a scope lifestyle. This means that the user only has access to it within the same scope. The main file is a global scope.

syntax:

// decleration
var <variable name> <?initial data, optional>

// write data into x from the top of the stack, stack doesn't pop!
store <variable name>

// push data to stack
load <variable name>

// delete variable from this scope
delete <variable name>

[Propsal] function decleration

syntax:

// decleration
// fn name(params)  /* code */  end
fn <func name>([n1, [n2, ...]] )
<function body>
end

// usage
// This func call get params from stack
<func name>

// Spesific params
<func name> 3 5

the if condition

If condition get top element of the stack and if its true run the if block else run the else block.
syntax:

1 if
// code
end
<val1> <val2> <operator> if <true code> else <other code> 

Operators:
==, !=, &&, ||

Condition Logics:
We can use stack manipulation operators, variales or plain data

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.