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

Print command #3

Open SK1Y101 opened 3 years ago

SK1Y101 commented 3 years ago

Some languages use print(), others use printf()

I think the keyword show shuld come bfore anything that is to be printed to the screen.

ie, instead of print("hello world"), we use show hello world

Multiple keywords can be used, not just show, of course

SK1Y101 commented 3 years ago

when using show, any variable names are automatically converted to their values:

if the variable "x" was 10, then show x would show "10" on the screen

However, using the variable name in quotation marks would force it to show as is: show x would print "x" on the screen.

SK1Y101 commented 3 years ago

additional variants of the keyword could include display