pascal 0.1.4

A modern Pascal compiler with build/intepreter/package manager built with Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "poscal-rs_runtime.h"
#include <stdio.h>

int main(int argc, char** argv) {
    pas_argc = argc;
    pas_argv = argv;
    printf("Param count: %d\n", pas_paramcount());
    if (argc > 0) {
        char buf[256];
        pas_paramstr(0, buf, sizeof(buf));
        printf("Program name: %s\n", buf);
    }
    pas_writeln("Hello from runtime test!");
    return 0;
}