Zen-C
Loading...
Searching...
No Matches
parser_decl.c File Reference
#include "parser.h"
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "../ast/ast.h"
#include "../plugins/plugin_manager.h"
#include "../zen/zen_facts.h"
#include "zprep_plugin.h"
#include "../codegen/codegen.h"
Include dependency graph for parser_decl.c:

Functions

ASTNodeparse_function (ParserContext *ctx, Lexer *l, int is_async)
 Parses a function definition.
 
char * patch_self_args (const char *args, const char *struct_name)
 Patches self arguments in a function.
 
ASTNodeparse_var_decl (ParserContext *ctx, Lexer *l)
 Parses a variable declaration.
 
ASTNodeparse_def (ParserContext *ctx, Lexer *l)
 Parses a def statement.
 
ASTNodeparse_type_alias (ParserContext *ctx, Lexer *l, int is_opaque)
 Parses a type alias.
 

Function Documentation

◆ parse_def()

ASTNode * parse_def ( ParserContext ctx,
Lexer l 
)

Parses a def statement.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_function()

ASTNode * parse_function ( ParserContext ctx,
Lexer l,
int  is_async 
)

Parses a function definition.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_type_alias()

ASTNode * parse_type_alias ( ParserContext ctx,
Lexer l,
int  is_opaque 
)

Parses a type alias.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_var_decl()

ASTNode * parse_var_decl ( ParserContext ctx,
Lexer l 
)

Parses a variable declaration.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ patch_self_args()

char * patch_self_args ( const char *  args,
const char *  struct_name 
)

Patches self arguments in a function.

Here is the call graph for this function:
Here is the caller graph for this function: