Fun 0.41.5
The programming language that makes You have fun
Loading...
Searching...
No Matches
funstx.c File Reference

Syntax checker and auto-fixer tool for Fun source files. More...

#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "bytecode.h"
#include "parser.h"
Include dependency graph for funstx.c:

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 Entry point for funstx.

Detailed Description

Syntax checker and auto-fixer tool for Fun source files.

Definition in file funstx.c.

Function Documentation

◆ main()

int main(intargc,
char **argv )

Entry point for funstx.

Parses flags, optionally applies in-place fixes (–fix), and validates each provided Fun source file by attempting to parse it. With –quiet, only errors are printed; otherwise, prints "OK" for valid files.

Parameters
argcArgument count.
argvArgument vector.
Returns
0 if all files are valid (and fixes succeeded if requested), non-zero otherwise.

Definition at line 299 of file funstx.c.

Here is the call graph for this function: