Zen-C
Loading...
Searching...
No Matches
parser_struct.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_struct.c:

Functions

ASTNodeparse_trait (ParserContext *ctx, Lexer *l)
 Parses a trait definition.
 
ASTNodeparse_impl (ParserContext *ctx, Lexer *l)
 Parses an implementation.
 
ASTNodeparse_struct (ParserContext *ctx, Lexer *l, int is_union, int is_opaque)
 Parses a struct definition.
 
Typeparse_type_obj (ParserContext *ctx, Lexer *l)
 
ASTNodeparse_enum (ParserContext *ctx, Lexer *l)
 Parses an enum definition.
 

Variables

char * g_current_filename
 

Function Documentation

◆ parse_enum()

ASTNode * parse_enum ( ParserContext ctx,
Lexer l 
)

Parses an enum definition.

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

◆ parse_impl()

ASTNode * parse_impl ( ParserContext ctx,
Lexer l 
)

Parses an implementation.

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

◆ parse_struct()

ASTNode * parse_struct ( ParserContext ctx,
Lexer l,
int  is_union,
int  is_opaque 
)

Parses a struct definition.

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

◆ parse_trait()

ASTNode * parse_trait ( ParserContext ctx,
Lexer l 
)

Parses a trait definition.

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

◆ parse_type_obj()

Type * parse_type_obj ( ParserContext ctx,
Lexer l 
)
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ g_current_filename

char* g_current_filename
extern