2021-12-05 13:26:18 +00:00
2021-11-29 18:49:24 +00:00
2021-11-28 21:02:47 +00:00
2021-11-28 21:57:46 +00:00
2021-12-02 16:43:53 +00:00
2021-12-05 13:26:18 +00:00
2021-11-28 21:57:46 +00:00
2021-12-05 17:37:12 +00:00
2021-11-28 21:02:47 +00:00
2021-11-28 21:41:42 +00:00
2021-11-28 21:41:42 +00:00
2021-12-05 17:29:23 +00:00

The Argon Programming Language

Key Features of Argon

  • easy to learn for new developers
  • boolean renamed from true and false to yes and no
  • the syntax is very similar to python and javascript
  • no requirement to know the difference between floats and ints

Examples

Hello world:

log('hello, world!')

Inputs:

input('name: ')

Variables:

const myConstant = "this can't change!"
var myVariable = "this can change!"
myOtherVariable = "this can also change!"

Addition:

const word1 = 'hello'
const word2 = 'world'
log(word1 + ' ' + word2)

If Statements:

const password = 'password123'
const guess = input('password: ')
if (password == guess) [
   log('correct') 
] else [
   log('incorrect')
]

While Loops:

var i = 0
while (i <- 100) [
   log(i)
   i++
]

Logic (Boolean):

log('true is now', yes)
log('false is now', no)
log('none is now', unknown)

while (yes) [
   log('Argon is EPIC!')
]

Items (Lists or Arrays):

[1, 2, 3]
['john', 'joe', 'bob']

Books (Dictionaries or Objects):

{'name': 'bob', 'age': 34, 'hobbies': ['Programming in Argon!', 'Playing video games!']}

How do I run Argon?

Setup:

Run a file:

  • make a file with the extention as .ar and put your Argon code inside that file
  • call the Argon executable with a parameter with the directory to your .ar file, (e.g. $ argon example.ar)

Run the shell:

  • run the Argon executable without any parameters, (e.g. $ argon)
Languages
Python 99.9%
Batchfile 0.1%