Category Tutorials

Tutorial #0 Basic syntax

The sources of argentum programming language are organized in modules.Modules are text files with extension ag residing in the same directory. They are always in UTF-8 encoding. On compiler invocation one of modules is passed to it as a starting…

Tutorial #2. Graphs with Cycles.

Tutorial updated to v.0.0.2 Let’s solve the following coding interview problem: You are given a directed graph in the form of a text string: “andy>ben ben>carol carol>den katy>andy ben>carol andy>katy carol>carol” Graph nodes are marked with words. The graph is…

Tutorial #1. Fizz-Buzz.

Code updated to v0.0.2: added module imports. Preparations Setup VSCode environment as shown here: how-to-play-with-argentum-in-vscode. Right-click on src folder and select new file: Type fizz_buzz.ag Question Fizz-buzz is a famous coding interview question. Usually it sounds as follows: Write to…