128 lines
5.5 KiB
C
128 lines
5.5 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* symbols_names_1.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2024/04/14 19:17:54 by maiboyer #+# #+# */
|
|
/* Updated: 2024/04/14 19:18:20 by maiboyer ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "./symbols_names.h"
|
|
|
|
void symbols_names_5(t_symbols_names_array *v)
|
|
{
|
|
v->a[anon_sym_SEMI] = ";";
|
|
v->a[sym_heredoc_start] = "heredoc_start";
|
|
v->a[sym_simple_heredoc_body] = "heredoc_body";
|
|
v->a[sym__heredoc_body_beginning] = "_heredoc_body_beginning";
|
|
v->a[sym_heredoc_content] = "heredoc_content";
|
|
v->a[sym_heredoc_end] = "heredoc_end";
|
|
v->a[sym_file_descriptor] = "file_descriptor";
|
|
v->a[sym__empty_value] = "_empty_value";
|
|
v->a[sym__concat] = "_concat";
|
|
v->a[sym_variable_name] = "variable_name";
|
|
v->a[sym_regex] = "regex";
|
|
v->a[sym__expansion_word] = "word";
|
|
v->a[sym_extglob_pattern] = "extglob_pattern";
|
|
v->a[sym__bare_dollar] = "$";
|
|
v->a[sym__immediate_double_hash] = "operator";
|
|
v->a[sym___error_recovery] = "__error_recovery";
|
|
v->a[sym_program] = "program";
|
|
v->a[sym__statements] = "_statements";
|
|
v->a[aux_sym__terminated_statement] = "_terminated_statement";
|
|
v->a[sym__statement_not_pipeline] = "_statement_not_pipeline";
|
|
symbols_names_6(v);
|
|
}
|
|
|
|
void symbols_names_6(t_symbols_names_array *v)
|
|
{
|
|
v->a[sym_redirected_statement] = "redirected_statement";
|
|
v->a[sym_for_statement] = "for_statement";
|
|
v->a[sym_while_statement] = "while_statement";
|
|
v->a[sym_do_group] = "do_group";
|
|
v->a[sym_if_statement] = "if_statement";
|
|
v->a[sym_elif_clause] = "elif_clause";
|
|
v->a[sym_else_clause] = "else_clause";
|
|
v->a[sym_case_statement] = "case_statement";
|
|
v->a[sym__case_item_last] = "case_item";
|
|
v->a[sym_case_item] = "case_item";
|
|
v->a[sym_function_definition] = "function_definition";
|
|
v->a[sym_compound_statement] = "compound_statement";
|
|
v->a[sym_subshell] = "subshell";
|
|
v->a[sym_pipeline] = "pipeline";
|
|
v->a[sym_list] = "list";
|
|
v->a[sym_negated_command] = "negated_command";
|
|
v->a[sym_command] = "command";
|
|
v->a[sym_command_name] = "command_name";
|
|
v->a[sym_variable_assignment] = "variable_assignment";
|
|
v->a[sym_variable_assignments] = "variable_assignments";
|
|
symbols_names_7(v);
|
|
}
|
|
|
|
void symbols_names_7(t_symbols_names_array *v)
|
|
{
|
|
v->a[sym_file_redirect] = "file_redirect";
|
|
v->a[sym_heredoc_redirect] = "heredoc_redirect";
|
|
v->a[sym__heredoc_pipeline] = "pipeline";
|
|
v->a[sym__heredoc_expression] = "_heredoc_expression";
|
|
v->a[aux_sym__heredoc_command] = "_heredoc_command";
|
|
v->a[sym__heredoc_body] = "_heredoc_body";
|
|
v->a[sym_heredoc_body] = "heredoc_body";
|
|
v->a[sym__simple_heredoc_body] = "_simple_heredoc_body";
|
|
v->a[sym_arithmetic_expansion] = "arithmetic_expansion";
|
|
v->a[sym__arithmetic_expression] = "_arithmetic_expression";
|
|
v->a[sym_arithmetic_literal] = "arithmetic_literal";
|
|
v->a[sym_arithmetic_binary_expression] = "arithmetic_binary_expression";
|
|
v->a[sym_arithmetic_ternary_expression] = "arithmetic_ternary_expression";
|
|
v->a[sym_arithmetic_unary_expression] = "arithmetic_unary_expression";
|
|
v->a[sym_arithmetic_postfix_expression] = "arithmetic_postfix_expression";
|
|
v->a[sym_arithmetic_parenthesized_expression] \
|
|
= "arithmetic_parenthesized_expression";
|
|
v->a[sym_concatenation] = "concatenation";
|
|
v->a[sym_string] = "string";
|
|
v->a[sym_number] = "number";
|
|
v->a[sym_simple_expansion] = "simple_expansion";
|
|
symbols_names_8(v);
|
|
}
|
|
|
|
void symbols_names_8(t_symbols_names_array *v)
|
|
{
|
|
v->a[sym_expansion] = "expansion";
|
|
v->a[sym__expansion_body] = "_expansion_body";
|
|
v->a[sym_expansion_expression] = "expansion_expression";
|
|
v->a[sym_expansion_regex] = "expansion_regex";
|
|
v->a[sym__concatenation_in_expansion] = "concatenation";
|
|
v->a[sym_command_substitution] = "command_substitution";
|
|
v->a[sym__extglob_blob] = "_extglob_blob";
|
|
v->a[aux_sym__statements_repeat1] = "_statements_repeat1";
|
|
v->a[aux_sym_redirected_statement_repeat1] \
|
|
= "redirected_statement_repeat1";
|
|
v->a[aux_sym_redirected_statement_repeat2] \
|
|
= "redirected_statement_repeat2";
|
|
v->a[aux_sym_for_statement_repeat1] = "for_statement_repeat1";
|
|
v->a[aux_sym_if_statement_repeat1] = "if_statement_repeat1";
|
|
v->a[aux_sym_case_statement_repeat1] = "case_statement_repeat1";
|
|
v->a[aux_sym__case_item_last_repeat1] = "_case_item_last_repeat1";
|
|
v->a[aux_sym__case_item_last_repeat2] = "_case_item_last_repeat2";
|
|
v->a[aux_sym_pipeline_repeat1] = "pipeline_repeat1";
|
|
v->a[aux_sym_command_repeat1] = "command_repeat1";
|
|
v->a[aux_sym_command_repeat2] = "command_repeat2";
|
|
v->a[aux_sym_variable_assignments_repeat1] \
|
|
= "variable_assignments_repeat1";
|
|
v->a[aux_sym_heredoc_body_repeat1] = "heredoc_body_repeat1";
|
|
symbols_names_9(v);
|
|
}
|
|
|
|
void symbols_names_9(t_symbols_names_array *v)
|
|
{
|
|
v->a[aux_sym_concatenation_repeat1] = "concatenation_repeat1";
|
|
v->a[aux_sym_string_repeat1] = "string_repeat1";
|
|
v->a[aux_sym_expansion_regex_repeat1] = "expansion_regex_repeat1";
|
|
v->a[aux_sym__concatenation_in_expansion_repeat1] \
|
|
= "_concatenation_in_expansion_repeat1";
|
|
}
|
|
|
|
/* EOF symbols_names_1.c */
|