Purple  0.1
Standard Language Specification
Macros | Functions
purple.c File Reference

Compiler entrypoint and setup. More...

#include <ctype.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "data.h"
#include "parse.h"
#include "scan.h"
#include "translate/symbol_table.h"
#include "translate/translate.h"
#include "utils/arguments.h"
#include "utils/clang.h"
#include "utils/logging.h"
Include dependency graph for purple.c:

Macros

#define extern_
 

Functions

static void init (int argc, char *argv[])
 Parse compiler arguments, open input file, and allocate memory. More...
 
int main (int argc, char *argv[])
 Compiler entrypoint. More...
 

Detailed Description

Compiler entrypoint and setup.

Author
Charles Averill
Date
08-Sep-2022

Macro Definition Documentation

◆ extern_

#define extern_

Function Documentation

◆ init()

static void init ( int  argc,
char *  argv[] 
)
static

Parse compiler arguments, open input file, and allocate memory.

Parameters
argc
argv

◆ main()

int main ( int  argc,
char *  argv[] 
)

Compiler entrypoint.

Parameters
argcNumber of command line arguments
argvArray of command line arguments
Returns
int Compiler return code