Skiylia-Lang / Verboscript

A toy programming language made in python; designed to be close to written english
GNU General Public License v3.0
2 stars 0 forks source link

Variable Declaration #4

Open SK1Y101 opened 3 years ago

SK1Y101 commented 3 years ago

For example, we have x = 5, or int x; x = 10 In Python and C++.

What if we instead use store 5 in the variable x or make x have a value of 5 or something like that?

SK1Y101 commented 3 years ago

Assignment

Aditionally, languages support reassigning variables:

python:

x = "hello there"

example idea in verboscript:

set x to hello there

Augmented assignment:

Some languages also support assignment and modifying in place:

python example:


x = x + 5