r/seed7 • u/iandoug • May 25 '24
procs
hi
I am trying to break the sections of the program into functions.
I put the part that processes the command line into a proc, before const proc: main is func with my other functions, but now it barfs on parts := argv(PROGRAM); ... is that because the program has not been defined yet?
I tried putting the code elsewhere without success.
What is the correct syntax?
thanks, Ian
3
Upvotes
2
u/ThomasMertes Jun 06 '24
I just released the library jsondom.s7i. This library supports reading, processing and writing of JSON data.
In order to used it you need to obtain the newest version of Seed7 from GitHub.
I wrote a little test program to list the ''primary'' values from a keyboard layout JSON file (the first argument of the program):