NAPA Compiler V4.50
Author: Yves Leduc, yves.leduc.be@gmail.com
|
Go to the source code of this file.
Macros | |
#define | EXTERN extern |
Functions | |
void | syntax_command_line (void) |
void | syntax_directives (void) |
void | syntax_fs (void) |
void | syntax_nodes (void) |
void | syntax_records (void) |
void | syntax_segment_value (void) |
void | syntax_terminate (void) |
void | syntax_updates (void) |
void | syntax_variables (void) |
long | check_syntax (long to_be, long no_sign, const char *sgn, char *tok, long id, const char *txt) |
void | authorize_option (long num, long id) |
long | something_else (const char *tok, long id) |
void | sanity_check (char *s, const unsigned long *mlin, const unsigned long *mfil) |
void | C_syntax_checker (char *str, const unsigned long *mlin, const unsigned long *mfil) |
void authorize_option | ( | long | num, |
long | id ) |
Definition at line 1674 of file sx.c.
References flag_node(), get_sign_and_token(), is_node_flagged(), ISEMPTY, Node_List, print_error_location(), STDERR, and STRLENGTH.
Referenced by syntax_nodes().
void C_syntax_checker | ( | char * | str, |
const unsigned long * | mlin, | ||
const unsigned long * | mfil ) |
Definition at line 1896 of file sx.c.
References print_error_banner_and_exit(), print_error_location(), sanity_check(), and STDERR.
Referenced by get_assert(), get_terminate(), process_condition(), syntax_nodes(), syntax_segment_value(), syntax_terminate(), syntax_updates(), and syntax_variables().
long check_syntax | ( | long | to_be, |
long | no_sign, | ||
const char * | sgn, | ||
char * | tok, | ||
long | id, | ||
const char * | txt ) |
Definition at line 1561 of file sx.c.
References ANALOG_DATA_TYPE, array_id(), constant_type(), DIGITAL_DATA_TYPE, DONTCARE, flag_node(), HEX_DATA_TYPE, is_node_flagged(), ISEMPTY, NODE, node_id(), Node_List, NOSIGN, NUMBER, op_id(), print_error_location(), process_node_error(), process_variable_error(), STDERR, STRING, STRING_DATA_TYPE, UNDEFINED, var_id(), and VARIABLE.
Referenced by syntax_nodes().
void sanity_check | ( | char * | s, |
const unsigned long * | mlin, | ||
const unsigned long * | mfil ) |
Definition at line 1758 of file sx.c.
References ABS, print_error_banner_and_exit(), print_error_location(), and STDERR.
Referenced by C_syntax_checker(), and line_parsing().
long something_else | ( | const char * | tok, |
long | id ) |
Definition at line 1737 of file sx.c.
References flag_node(), is_node_flagged(), ISNOTEMPTY, Node_List, print_error_location(), and STDERR.
Referenced by syntax_nodes().
void syntax_command_line | ( | void | ) |
Definition at line 45 of file sx.c.
References Cmdline_Flag, Cmdline_List, ISNOTEQUAL, Num_Cmdlines, Num_FileCells, print_error_location(), print_location(), print_warning_location(), Record_Cell_File_Table, Sampling_List, STDERR, STRING_DATA_TYPE, strip_quotes(), STRLENGTH, UNDEFINED, update_id(), Update_List, upper_to_lower(), var_id(), and Var_List.
Referenced by main().
void syntax_directives | ( | void | ) |
Definition at line 113 of file sx.c.
References Directive_List, get_token(), get_type(), ISEMPTY, node_id(), Num_Directives, print_error_location(), STDERR, STRING_DATA_TYPE, STRLENGTH, UNDEFINED, and var_id().
Referenced by main().
void syntax_fs | ( | void | ) |
Definition at line 138 of file sx.c.
References Error_Flag, Fs_Ext_Flag, Fs_Flag, Loop_Flag, MAXDEPTH, Periodic_Flag, print_warning_location(), Sampling_List, STDERR, Terminate_Flag, Ts_Ext_Flag, and Ts_Flag.
Referenced by main().
void syntax_nodes | ( | void | ) |
Definition at line 159 of file sx.c.
References ADC_KIND, ALGEBRA_KIND, ALU_KIND, AND_KIND, array_id(), Array_List, authorize_option(), AVERAGE_KIND, BSHIFT_KIND, BTOI_KIND, BUF_KIND, BWAND_KIND, BWINV_KIND, BWNAND_KIND, BWNOR_KIND, BWOR_KIND, BWXNOR_KIND, BWXOR_KIND, C_syntax_checker(), check_syntax(), CHG_KIND, CLIP_KIND, CLOCK_KIND, COMP_KIND, CONST_KIND, COPY_KIND, COS_KIND, DAC_KIND, DALGEBRA_KIND, DC_KIND, DELAY1_KIND, DELAY2_KIND, DELAY3_KIND, DELAY_KIND, DIFFERENTIATOR_KIND, DIV_KIND, DONTCARE, DTOI_KIND, DTOOL_KIND, DUSER_KIND, EQUAL_KIND, flag_node(), FZAND_KIND, FZBUF_KIND, FZINV_KIND, FZNAND_KIND, FZNOR_KIND, FZOR_KIND, FZXNOR_KIND, FZXOR_KIND, GAIN_KIND, get_sign_and_token(), get_token_between_braces(), HOLD_KIND, IALGEBRA_KIND, INTEGRATOR_KIND, INV_KIND, is_node_flagged(), ISEMPTY, ISNOTEMPTY, ITOB_KIND, ITOD_KIND, ITOOL_KIND, IUSER_KIND, LATCH_KIND, LSHIFT_KIND, MACHINE, MAX_KIND, MERGE_KIND, MIN_KIND, MOD_KIND, MULLER_KIND, MUX_KIND, NAND_KIND, NO, NODE, node_id(), Node_List, NOISE_KIND, NOR_KIND, NOSIGN, Num_Nodes, NUMBER, OFFSET_KIND, OR_KIND, OSC_KIND, POLY_KIND, print_error_location(), process_array_error(), process_node_error(), PROD_KIND, QUANT_KIND, RAM2_KIND, RAM_KIND, record_id(), RECT_KIND, RELAY_KIND, replace_dollar(), RIP_KIND, ROM2_KIND, ROM_KIND, RSHIFT1_KIND, RSHIFT2_KIND, RSHIFT_KIND, SIGN_KIND, SIN_KIND, something_else(), SQUARE_KIND, STDERR, STEP_KIND, STRLENGTH, SUB_KIND, SUM_KIND, TEST_KIND, TOGGLE_KIND, TRACK_KIND, TRIANGLE_KIND, TRIG_KIND, UADC_KIND, UDAC_KIND, UNDEFINED, UNKNOWN_KIND, UNKNOWN_TYPE, VARIABLE, verify_rshift(), WSUM_KIND, XNOR_KIND, XOR_KIND, YES, and ZERO_KIND.
Referenced by main().
void syntax_records | ( | void | ) |
Definition at line 1362 of file sx.c.
References constant_type(), Error_Flag, get_sign_and_token(), is_an_identifier(), ISEMPTY, node_id(), Num_Records, print_error_location(), process_record_error(), process_variable_error(), record_id(), Record_List, STDERR, STRLENGTH, UNDEFINED, UNKNOWN_TYPE, and var_id().
Referenced by main().
void syntax_segment_value | ( | void | ) |
Definition at line 1414 of file sx.c.
References C_syntax_checker(), DROP_SEGMENT_TYPE, get_token(), ISEMPTY, Num_Segments, print_error_location(), Segment_List, STDERR, and STRLENGTH.
Referenced by main().
void syntax_terminate | ( | void | ) |
Definition at line 1441 of file sx.c.
References C_syntax_checker(), get_token(), ISEMPTY, print_error_location(), STDERR, STRLENGTH, and Terminate_List.
Referenced by main().
void syntax_updates | ( | void | ) |
Definition at line 1462 of file sx.c.
References array_id(), Array_List, C_syntax_checker(), get_token(), ISEMPTY, Num_Updates, print_error_location(), record_id(), Record_List, STDERR, STRLENGTH, UNDEFINED, Update_List, var_id(), and Var_List.
Referenced by main().
void syntax_variables | ( | void | ) |
Definition at line 1506 of file sx.c.
References ANALOG_DATA_TYPE, C_syntax_checker(), DIGITAL_DATA_TYPE, get_token(), is_a_string(), ISEMPTY, Num_Vars, print_error_location(), record_id(), Record_List, STDERR, STRLENGTH, UNDEFINED, and Var_List.
Referenced by main().