Lex Gen Main; C++ Lexer Model
parent
8bd7c2fd67
commit
c9fe9175f6
|
@ -664,43 +664,5 @@ STRUCT Process_State{
|
|||
i64 return_code;
|
||||
};
|
||||
|
||||
ENUM(i16, Token_Base_Kind){
|
||||
TokenBaseKind_EOF,
|
||||
TokenBaseKind_Whitespace,
|
||||
TokenBaseKind_LexError,
|
||||
TokenBaseKind_Comment,
|
||||
TokenBaseKind_Keyword,
|
||||
TokenBaseKind_Identifier,
|
||||
TokenBaseKind_Operator,
|
||||
TokenBaseKind_LiteralInteger,
|
||||
TokenBaseKind_LiteralFloat,
|
||||
TokenBaseKind_LiteralString,
|
||||
TokenBaseKind_ScopeOpen,
|
||||
TokenBaseKind_ScopeClose,
|
||||
TokenBaseKind_ParentheticalOpen,
|
||||
TokenBaseKind_ParentheticalClose,
|
||||
|
||||
TokenBaseKind_COUNT,
|
||||
};
|
||||
|
||||
ENUM(u16, Token_Base_Flags){
|
||||
TokenBaseFlag_PreProcessorBody = 1,
|
||||
};
|
||||
|
||||
STRUCT Token{
|
||||
i64 pos;
|
||||
i64 size;
|
||||
Token_Base_Kind kind;
|
||||
Token_Base_Flags flags;
|
||||
i16 sub_kind;
|
||||
u16 sub_flags;
|
||||
};
|
||||
|
||||
STRUCT Token_Array{
|
||||
Token *tokens;
|
||||
i64 count;
|
||||
i64 max;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
@ -468,15 +468,15 @@ get_file_list(Partition *part, Filename_Character *pattern, File_Filter *filter)
|
|||
# error metdata generator not supported on this platform
|
||||
#endif
|
||||
|
||||
static String_Const_char
|
||||
static String_Const_u8
|
||||
file_dump(Arena *arena, char *name){
|
||||
String_Const_char text = {};
|
||||
String_Const_u8 text = {};
|
||||
FILE *file = fopen(name, "rb");
|
||||
if (file != 0){
|
||||
fseek(file, 0, SEEK_END);
|
||||
text.size = ftell(file);
|
||||
fseek(file, 0, SEEK_SET);
|
||||
text.str = push_array(arena, char, text.size + 1);
|
||||
text.str = push_array(arena, u8, text.size + 1);
|
||||
if (text.str == 0){
|
||||
fprintf(stdout, "fatal error: not enough memory in partition for file dumping");
|
||||
exit(1);
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -2,723 +2,24 @@
|
|||
#define command_id(c) (fcoder_metacmd_ID_##c)
|
||||
#define command_metadata(c) (&fcoder_metacmd_table[command_id(c)])
|
||||
#define command_metadata_by_id(id) (&fcoder_metacmd_table[id])
|
||||
#define command_one_past_last_id 233
|
||||
#define command_one_past_last_id 0
|
||||
#if defined(CUSTOM_COMMAND_SIG)
|
||||
#define PROC_LINKS(x,y) x
|
||||
#else
|
||||
#define PROC_LINKS(x,y) y
|
||||
#endif
|
||||
#if defined(CUSTOM_COMMAND_SIG)
|
||||
CUSTOM_COMMAND_SIG(write_explicit_enum_flags);
|
||||
CUSTOM_COMMAND_SIG(seek_beginning_of_textual_line);
|
||||
CUSTOM_COMMAND_SIG(seek_end_of_textual_line);
|
||||
CUSTOM_COMMAND_SIG(seek_beginning_of_line);
|
||||
CUSTOM_COMMAND_SIG(seek_end_of_line);
|
||||
CUSTOM_COMMAND_SIG(goto_beginning_of_file);
|
||||
CUSTOM_COMMAND_SIG(goto_end_of_file);
|
||||
CUSTOM_COMMAND_SIG(change_active_panel);
|
||||
CUSTOM_COMMAND_SIG(change_active_panel_backwards);
|
||||
CUSTOM_COMMAND_SIG(open_panel_vsplit);
|
||||
CUSTOM_COMMAND_SIG(open_panel_hsplit);
|
||||
CUSTOM_COMMAND_SIG(suppress_mouse);
|
||||
CUSTOM_COMMAND_SIG(allow_mouse);
|
||||
CUSTOM_COMMAND_SIG(toggle_mouse);
|
||||
CUSTOM_COMMAND_SIG(set_mode_to_original);
|
||||
CUSTOM_COMMAND_SIG(set_mode_to_notepad_like);
|
||||
CUSTOM_COMMAND_SIG(toggle_highlight_line_at_cursor);
|
||||
CUSTOM_COMMAND_SIG(toggle_highlight_enclosing_scopes);
|
||||
CUSTOM_COMMAND_SIG(toggle_paren_matching_helper);
|
||||
CUSTOM_COMMAND_SIG(toggle_fullscreen);
|
||||
CUSTOM_COMMAND_SIG(remap_interactive);
|
||||
CUSTOM_COMMAND_SIG(write_character);
|
||||
CUSTOM_COMMAND_SIG(write_underscore);
|
||||
CUSTOM_COMMAND_SIG(delete_char);
|
||||
CUSTOM_COMMAND_SIG(backspace_char);
|
||||
CUSTOM_COMMAND_SIG(set_mark);
|
||||
CUSTOM_COMMAND_SIG(cursor_mark_swap);
|
||||
CUSTOM_COMMAND_SIG(delete_range);
|
||||
CUSTOM_COMMAND_SIG(backspace_alpha_numeric_boundary);
|
||||
CUSTOM_COMMAND_SIG(delete_alpha_numeric_boundary);
|
||||
CUSTOM_COMMAND_SIG(snipe_backward_whitespace_or_token_boundary);
|
||||
CUSTOM_COMMAND_SIG(snipe_forward_whitespace_or_token_boundary);
|
||||
CUSTOM_COMMAND_SIG(center_view);
|
||||
CUSTOM_COMMAND_SIG(left_adjust_view);
|
||||
CUSTOM_COMMAND_SIG(click_set_cursor_and_mark);
|
||||
CUSTOM_COMMAND_SIG(click_set_cursor);
|
||||
CUSTOM_COMMAND_SIG(click_set_cursor_if_lbutton);
|
||||
CUSTOM_COMMAND_SIG(click_set_mark);
|
||||
CUSTOM_COMMAND_SIG(mouse_wheel_scroll);
|
||||
CUSTOM_COMMAND_SIG(move_up);
|
||||
CUSTOM_COMMAND_SIG(move_down);
|
||||
CUSTOM_COMMAND_SIG(move_up_10);
|
||||
CUSTOM_COMMAND_SIG(move_down_10);
|
||||
CUSTOM_COMMAND_SIG(move_down_textual);
|
||||
CUSTOM_COMMAND_SIG(page_up);
|
||||
CUSTOM_COMMAND_SIG(page_down);
|
||||
CUSTOM_COMMAND_SIG(move_up_to_blank_line);
|
||||
CUSTOM_COMMAND_SIG(move_down_to_blank_line);
|
||||
CUSTOM_COMMAND_SIG(move_up_to_blank_line_skip_whitespace);
|
||||
CUSTOM_COMMAND_SIG(move_down_to_blank_line_skip_whitespace);
|
||||
CUSTOM_COMMAND_SIG(move_up_to_blank_line_end);
|
||||
CUSTOM_COMMAND_SIG(move_down_to_blank_line_end);
|
||||
CUSTOM_COMMAND_SIG(move_left);
|
||||
CUSTOM_COMMAND_SIG(move_right);
|
||||
CUSTOM_COMMAND_SIG(move_right_whitespace_boundary);
|
||||
CUSTOM_COMMAND_SIG(move_left_whitespace_boundary);
|
||||
CUSTOM_COMMAND_SIG(move_right_token_boundary);
|
||||
CUSTOM_COMMAND_SIG(move_left_token_boundary);
|
||||
CUSTOM_COMMAND_SIG(move_right_whitespace_or_token_boundary);
|
||||
CUSTOM_COMMAND_SIG(move_left_whitespace_or_token_boundary);
|
||||
CUSTOM_COMMAND_SIG(move_right_alpha_numeric_boundary);
|
||||
CUSTOM_COMMAND_SIG(move_left_alpha_numeric_boundary);
|
||||
CUSTOM_COMMAND_SIG(move_right_alpha_numeric_or_camel_boundary);
|
||||
CUSTOM_COMMAND_SIG(move_left_alpha_numeric_or_camel_boundary);
|
||||
CUSTOM_COMMAND_SIG(select_all);
|
||||
CUSTOM_COMMAND_SIG(to_uppercase);
|
||||
CUSTOM_COMMAND_SIG(to_lowercase);
|
||||
CUSTOM_COMMAND_SIG(clean_all_lines);
|
||||
CUSTOM_COMMAND_SIG(basic_change_active_panel);
|
||||
CUSTOM_COMMAND_SIG(close_panel);
|
||||
CUSTOM_COMMAND_SIG(show_scrollbar);
|
||||
CUSTOM_COMMAND_SIG(hide_scrollbar);
|
||||
CUSTOM_COMMAND_SIG(show_filebar);
|
||||
CUSTOM_COMMAND_SIG(hide_filebar);
|
||||
CUSTOM_COMMAND_SIG(toggle_filebar);
|
||||
CUSTOM_COMMAND_SIG(toggle_line_wrap);
|
||||
CUSTOM_COMMAND_SIG(toggle_fps_meter);
|
||||
CUSTOM_COMMAND_SIG(increase_line_wrap);
|
||||
CUSTOM_COMMAND_SIG(decrease_line_wrap);
|
||||
CUSTOM_COMMAND_SIG(increase_face_size);
|
||||
CUSTOM_COMMAND_SIG(decrease_face_size);
|
||||
CUSTOM_COMMAND_SIG(mouse_wheel_change_face_size);
|
||||
CUSTOM_COMMAND_SIG(toggle_virtual_whitespace);
|
||||
CUSTOM_COMMAND_SIG(toggle_show_whitespace);
|
||||
CUSTOM_COMMAND_SIG(toggle_line_numbers);
|
||||
CUSTOM_COMMAND_SIG(eol_dosify);
|
||||
CUSTOM_COMMAND_SIG(eol_nixify);
|
||||
CUSTOM_COMMAND_SIG(exit_4coder);
|
||||
CUSTOM_COMMAND_SIG(goto_line);
|
||||
CUSTOM_COMMAND_SIG(search);
|
||||
CUSTOM_COMMAND_SIG(reverse_search);
|
||||
CUSTOM_COMMAND_SIG(search_identifier);
|
||||
CUSTOM_COMMAND_SIG(reverse_search_identifier);
|
||||
CUSTOM_COMMAND_SIG(replace_in_range);
|
||||
CUSTOM_COMMAND_SIG(replace_in_buffer);
|
||||
CUSTOM_COMMAND_SIG(replace_in_all_buffers);
|
||||
CUSTOM_COMMAND_SIG(query_replace);
|
||||
CUSTOM_COMMAND_SIG(query_replace_identifier);
|
||||
CUSTOM_COMMAND_SIG(query_replace_selection);
|
||||
CUSTOM_COMMAND_SIG(save_all_dirty_buffers);
|
||||
CUSTOM_COMMAND_SIG(delete_file_query);
|
||||
CUSTOM_COMMAND_SIG(save_to_query);
|
||||
CUSTOM_COMMAND_SIG(rename_file_query);
|
||||
CUSTOM_COMMAND_SIG(make_directory_query);
|
||||
CUSTOM_COMMAND_SIG(move_line_up);
|
||||
CUSTOM_COMMAND_SIG(move_line_down);
|
||||
CUSTOM_COMMAND_SIG(duplicate_line);
|
||||
CUSTOM_COMMAND_SIG(delete_line);
|
||||
CUSTOM_COMMAND_SIG(open_file_in_quotes);
|
||||
CUSTOM_COMMAND_SIG(open_matching_file_cpp);
|
||||
CUSTOM_COMMAND_SIG(view_buffer_other_panel);
|
||||
CUSTOM_COMMAND_SIG(swap_buffers_between_panels);
|
||||
CUSTOM_COMMAND_SIG(kill_buffer);
|
||||
CUSTOM_COMMAND_SIG(save);
|
||||
CUSTOM_COMMAND_SIG(reopen);
|
||||
CUSTOM_COMMAND_SIG(undo);
|
||||
CUSTOM_COMMAND_SIG(redo);
|
||||
CUSTOM_COMMAND_SIG(undo_all_buffers);
|
||||
CUSTOM_COMMAND_SIG(redo_all_buffers);
|
||||
CUSTOM_COMMAND_SIG(open_in_other);
|
||||
CUSTOM_COMMAND_SIG(lister__quit);
|
||||
CUSTOM_COMMAND_SIG(lister__activate);
|
||||
CUSTOM_COMMAND_SIG(lister__write_character);
|
||||
CUSTOM_COMMAND_SIG(lister__backspace_text_field);
|
||||
CUSTOM_COMMAND_SIG(lister__move_up);
|
||||
CUSTOM_COMMAND_SIG(lister__move_down);
|
||||
CUSTOM_COMMAND_SIG(lister__wheel_scroll);
|
||||
CUSTOM_COMMAND_SIG(lister__mouse_press);
|
||||
CUSTOM_COMMAND_SIG(lister__mouse_release);
|
||||
CUSTOM_COMMAND_SIG(lister__repaint);
|
||||
CUSTOM_COMMAND_SIG(lister__write_character__default);
|
||||
CUSTOM_COMMAND_SIG(lister__backspace_text_field__default);
|
||||
CUSTOM_COMMAND_SIG(lister__move_up__default);
|
||||
CUSTOM_COMMAND_SIG(lister__move_down__default);
|
||||
CUSTOM_COMMAND_SIG(lister__write_character__file_path);
|
||||
CUSTOM_COMMAND_SIG(lister__backspace_text_field__file_path);
|
||||
CUSTOM_COMMAND_SIG(lister__write_character__fixed_list);
|
||||
CUSTOM_COMMAND_SIG(interactive_switch_buffer);
|
||||
CUSTOM_COMMAND_SIG(interactive_kill_buffer);
|
||||
CUSTOM_COMMAND_SIG(interactive_open_or_new);
|
||||
CUSTOM_COMMAND_SIG(interactive_new);
|
||||
CUSTOM_COMMAND_SIG(interactive_open);
|
||||
CUSTOM_COMMAND_SIG(command_lister);
|
||||
CUSTOM_COMMAND_SIG(auto_tab_whole_file);
|
||||
CUSTOM_COMMAND_SIG(auto_tab_line_at_cursor);
|
||||
CUSTOM_COMMAND_SIG(auto_tab_range);
|
||||
CUSTOM_COMMAND_SIG(write_and_auto_tab);
|
||||
CUSTOM_COMMAND_SIG(list_all_locations);
|
||||
CUSTOM_COMMAND_SIG(list_all_substring_locations);
|
||||
CUSTOM_COMMAND_SIG(list_all_locations_case_insensitive);
|
||||
CUSTOM_COMMAND_SIG(list_all_substring_locations_case_insensitive);
|
||||
CUSTOM_COMMAND_SIG(list_all_locations_of_identifier);
|
||||
CUSTOM_COMMAND_SIG(list_all_locations_of_identifier_case_insensitive);
|
||||
CUSTOM_COMMAND_SIG(list_all_locations_of_selection);
|
||||
CUSTOM_COMMAND_SIG(list_all_locations_of_selection_case_insensitive);
|
||||
CUSTOM_COMMAND_SIG(list_all_locations_of_type_definition);
|
||||
CUSTOM_COMMAND_SIG(list_all_locations_of_type_definition_of_identifier);
|
||||
CUSTOM_COMMAND_SIG(word_complete);
|
||||
CUSTOM_COMMAND_SIG(goto_jump_at_cursor);
|
||||
CUSTOM_COMMAND_SIG(goto_jump_at_cursor_same_panel);
|
||||
CUSTOM_COMMAND_SIG(goto_next_jump);
|
||||
CUSTOM_COMMAND_SIG(goto_prev_jump);
|
||||
CUSTOM_COMMAND_SIG(goto_next_jump_no_skips);
|
||||
CUSTOM_COMMAND_SIG(goto_prev_jump_no_skips);
|
||||
CUSTOM_COMMAND_SIG(goto_first_jump);
|
||||
CUSTOM_COMMAND_SIG(goto_first_jump_same_panel_sticky);
|
||||
CUSTOM_COMMAND_SIG(newline_or_goto_position);
|
||||
CUSTOM_COMMAND_SIG(newline_or_goto_position_same_panel);
|
||||
CUSTOM_COMMAND_SIG(view_jump_list_with_lister);
|
||||
CUSTOM_COMMAND_SIG(log_graph__escape);
|
||||
CUSTOM_COMMAND_SIG(log_graph__scroll_wheel);
|
||||
CUSTOM_COMMAND_SIG(log_graph__page_up);
|
||||
CUSTOM_COMMAND_SIG(log_graph__page_down);
|
||||
CUSTOM_COMMAND_SIG(log_graph__click_select_event);
|
||||
CUSTOM_COMMAND_SIG(log_graph__click_jump_to_event_source);
|
||||
CUSTOM_COMMAND_SIG(show_the_log_graph);
|
||||
CUSTOM_COMMAND_SIG(copy);
|
||||
CUSTOM_COMMAND_SIG(cut);
|
||||
CUSTOM_COMMAND_SIG(paste);
|
||||
CUSTOM_COMMAND_SIG(paste_next);
|
||||
CUSTOM_COMMAND_SIG(paste_and_indent);
|
||||
CUSTOM_COMMAND_SIG(paste_next_and_indent);
|
||||
CUSTOM_COMMAND_SIG(execute_previous_cli);
|
||||
CUSTOM_COMMAND_SIG(execute_any_cli);
|
||||
CUSTOM_COMMAND_SIG(build_search);
|
||||
CUSTOM_COMMAND_SIG(build_in_build_panel);
|
||||
CUSTOM_COMMAND_SIG(close_build_panel);
|
||||
CUSTOM_COMMAND_SIG(change_to_build_panel);
|
||||
CUSTOM_COMMAND_SIG(close_all_code);
|
||||
CUSTOM_COMMAND_SIG(open_all_code);
|
||||
CUSTOM_COMMAND_SIG(open_all_code_recursive);
|
||||
CUSTOM_COMMAND_SIG(load_project);
|
||||
CUSTOM_COMMAND_SIG(project_fkey_command);
|
||||
CUSTOM_COMMAND_SIG(project_go_to_root_directory);
|
||||
CUSTOM_COMMAND_SIG(setup_new_project);
|
||||
CUSTOM_COMMAND_SIG(setup_build_bat);
|
||||
CUSTOM_COMMAND_SIG(setup_build_sh);
|
||||
CUSTOM_COMMAND_SIG(setup_build_bat_and_sh);
|
||||
CUSTOM_COMMAND_SIG(project_command_lister);
|
||||
CUSTOM_COMMAND_SIG(list_all_functions_current_buffer);
|
||||
CUSTOM_COMMAND_SIG(list_all_functions_current_buffer_lister);
|
||||
CUSTOM_COMMAND_SIG(list_all_functions_all_buffers);
|
||||
CUSTOM_COMMAND_SIG(list_all_functions_all_buffers_lister);
|
||||
CUSTOM_COMMAND_SIG(select_surrounding_scope);
|
||||
CUSTOM_COMMAND_SIG(select_next_scope_absolute);
|
||||
CUSTOM_COMMAND_SIG(select_prev_scope_absolute);
|
||||
CUSTOM_COMMAND_SIG(place_in_scope);
|
||||
CUSTOM_COMMAND_SIG(delete_current_scope);
|
||||
CUSTOM_COMMAND_SIG(scope_absorb_down);
|
||||
CUSTOM_COMMAND_SIG(open_long_braces);
|
||||
CUSTOM_COMMAND_SIG(open_long_braces_semicolon);
|
||||
CUSTOM_COMMAND_SIG(open_long_braces_break);
|
||||
CUSTOM_COMMAND_SIG(if0_off);
|
||||
CUSTOM_COMMAND_SIG(write_todo);
|
||||
CUSTOM_COMMAND_SIG(write_hack);
|
||||
CUSTOM_COMMAND_SIG(write_note);
|
||||
CUSTOM_COMMAND_SIG(write_block);
|
||||
CUSTOM_COMMAND_SIG(write_zero_struct);
|
||||
CUSTOM_COMMAND_SIG(comment_line);
|
||||
CUSTOM_COMMAND_SIG(uncomment_line);
|
||||
CUSTOM_COMMAND_SIG(comment_line_toggle);
|
||||
CUSTOM_COMMAND_SIG(snippet_lister);
|
||||
CUSTOM_COMMAND_SIG(set_bindings_choose);
|
||||
CUSTOM_COMMAND_SIG(set_bindings_default);
|
||||
CUSTOM_COMMAND_SIG(set_bindings_mac_default);
|
||||
CUSTOM_COMMAND_SIG(miblo_increment_basic);
|
||||
CUSTOM_COMMAND_SIG(miblo_decrement_basic);
|
||||
CUSTOM_COMMAND_SIG(miblo_increment_time_stamp);
|
||||
CUSTOM_COMMAND_SIG(miblo_decrement_time_stamp);
|
||||
CUSTOM_COMMAND_SIG(miblo_increment_time_stamp_minute);
|
||||
CUSTOM_COMMAND_SIG(miblo_decrement_time_stamp_minute);
|
||||
CUSTOM_COMMAND_SIG(rename_parameter);
|
||||
CUSTOM_COMMAND_SIG(write_explicit_enum_values);
|
||||
#endif
|
||||
struct Command_Metadata{
|
||||
PROC_LINKS(Custom_Command_Function, void) *proc;
|
||||
char *name;
|
||||
int32_t name_len;
|
||||
i32 name_len;
|
||||
char *description;
|
||||
int32_t description_len;
|
||||
i32 description_len;
|
||||
char *source_name;
|
||||
int32_t source_name_len;
|
||||
int32_t line_number;
|
||||
i32 source_name_len;
|
||||
i32 line_number;
|
||||
};
|
||||
static Command_Metadata fcoder_metacmd_table[233] = {
|
||||
{ PROC_LINKS(write_explicit_enum_flags, 0), "write_explicit_enum_flags", 25, "If the cursor is found to be on the '{' of an enum definition, the values of the enum will be filled in to give each a unique power of 2 value, starting from 1. Existing values are overwritten.", 194, "w:\\4ed\\code\\4coder_experiments.cpp", 34, 502 },
|
||||
{ PROC_LINKS(seek_beginning_of_textual_line, 0), "seek_beginning_of_textual_line", 30, "Seeks the cursor to the beginning of the line across all text.", 62, "w:\\4ed\\code\\4coder_seek.cpp", 27, 29 },
|
||||
{ PROC_LINKS(seek_end_of_textual_line, 0), "seek_end_of_textual_line", 24, "Seeks the cursor to the end of the line across all text.", 56, "w:\\4ed\\code\\4coder_seek.cpp", 27, 35 },
|
||||
{ PROC_LINKS(seek_beginning_of_line, 0), "seek_beginning_of_line", 22, "Seeks the cursor to the beginning of the visual line.", 53, "w:\\4ed\\code\\4coder_seek.cpp", 27, 41 },
|
||||
{ PROC_LINKS(seek_end_of_line, 0), "seek_end_of_line", 16, "Seeks the cursor to the end of the visual line.", 47, "w:\\4ed\\code\\4coder_seek.cpp", 27, 47 },
|
||||
{ PROC_LINKS(goto_beginning_of_file, 0), "goto_beginning_of_file", 22, "Sets the cursor to the beginning of the file.", 45, "w:\\4ed\\code\\4coder_seek.cpp", 27, 53 },
|
||||
{ PROC_LINKS(goto_end_of_file, 0), "goto_end_of_file", 16, "Sets the cursor to the end of the file.", 39, "w:\\4ed\\code\\4coder_seek.cpp", 27, 61 },
|
||||
{ PROC_LINKS(change_active_panel, 0), "change_active_panel", 19, "Change the currently active panel, moving to the panel with the next highest view_id.", 85, "w:\\4ed\\code\\4coder_default_framework.cpp", 40, 201 },
|
||||
{ PROC_LINKS(change_active_panel_backwards, 0), "change_active_panel_backwards", 29, "Change the currently active panel, moving to the panel with the next lowest view_id.", 84, "w:\\4ed\\code\\4coder_default_framework.cpp", 40, 211 },
|
||||
{ PROC_LINKS(open_panel_vsplit, 0), "open_panel_vsplit", 17, "Create a new panel by vertically splitting the active panel.", 60, "w:\\4ed\\code\\4coder_default_framework.cpp", 40, 221 },
|
||||
{ PROC_LINKS(open_panel_hsplit, 0), "open_panel_hsplit", 17, "Create a new panel by horizontally splitting the active panel.", 62, "w:\\4ed\\code\\4coder_default_framework.cpp", 40, 231 },
|
||||
{ PROC_LINKS(suppress_mouse, 0), "suppress_mouse", 14, "Hides the mouse and causes all mosue input (clicks, position, wheel) to be ignored.", 83, "w:\\4ed\\code\\4coder_default_framework.cpp", 40, 294 },
|
||||
{ PROC_LINKS(allow_mouse, 0), "allow_mouse", 11, "Shows the mouse and causes all mouse input to be processed normally.", 68, "w:\\4ed\\code\\4coder_default_framework.cpp", 40, 300 },
|
||||
{ PROC_LINKS(toggle_mouse, 0), "toggle_mouse", 12, "Toggles the mouse suppression mode, see suppress_mouse and allow_mouse.", 71, "w:\\4ed\\code\\4coder_default_framework.cpp", 40, 306 },
|
||||
{ PROC_LINKS(set_mode_to_original, 0), "set_mode_to_original", 20, "Sets the edit mode to 4coder original.", 38, "w:\\4ed\\code\\4coder_default_framework.cpp", 40, 312 },
|
||||
{ PROC_LINKS(set_mode_to_notepad_like, 0), "set_mode_to_notepad_like", 24, "Sets the edit mode to Notepad like.", 35, "w:\\4ed\\code\\4coder_default_framework.cpp", 40, 318 },
|
||||
{ PROC_LINKS(toggle_highlight_line_at_cursor, 0), "toggle_highlight_line_at_cursor", 31, "Toggles the line highlight at the cursor.", 41, "w:\\4ed\\code\\4coder_default_framework.cpp", 40, 324 },
|
||||
{ PROC_LINKS(toggle_highlight_enclosing_scopes, 0), "toggle_highlight_enclosing_scopes", 33, "In code files scopes surrounding the cursor are highlighted with distinguishing colors.", 87, "w:\\4ed\\code\\4coder_default_framework.cpp", 40, 330 },
|
||||
{ PROC_LINKS(toggle_paren_matching_helper, 0), "toggle_paren_matching_helper", 28, "In code files matching parentheses pairs are colored with distinguishing colors.", 80, "w:\\4ed\\code\\4coder_default_framework.cpp", 40, 336 },
|
||||
{ PROC_LINKS(toggle_fullscreen, 0), "toggle_fullscreen", 17, "Toggle fullscreen mode on or off. The change(s) do not take effect until the next frame.", 89, "w:\\4ed\\code\\4coder_default_framework.cpp", 40, 342 },
|
||||
{ PROC_LINKS(remap_interactive, 0), "remap_interactive", 17, "Switch to a named key binding map.", 34, "w:\\4ed\\code\\4coder_default_framework.cpp", 40, 350 },
|
||||
{ PROC_LINKS(write_character, 0), "write_character", 15, "Inserts whatever character was used to trigger this command.", 60, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 57 },
|
||||
{ PROC_LINKS(write_underscore, 0), "write_underscore", 16, "Inserts an underscore.", 22, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 66 },
|
||||
{ PROC_LINKS(delete_char, 0), "delete_char", 11, "Deletes the character to the right of the cursor.", 49, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 73 },
|
||||
{ PROC_LINKS(backspace_char, 0), "backspace_char", 14, "Deletes the character to the left of the cursor.", 48, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 90 },
|
||||
{ PROC_LINKS(set_mark, 0), "set_mark", 8, "Sets the mark to the current position of the cursor.", 52, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 109 },
|
||||
{ PROC_LINKS(cursor_mark_swap, 0), "cursor_mark_swap", 16, "Swaps the position of the cursor and the mark.", 46, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 118 },
|
||||
{ PROC_LINKS(delete_range, 0), "delete_range", 12, "Deletes the text in the range between the cursor and the mark.", 62, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 128 },
|
||||
{ PROC_LINKS(backspace_alpha_numeric_boundary, 0), "backspace_alpha_numeric_boundary", 32, "Delete characters between the cursor position and the first alphanumeric boundary to the left.", 94, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 148 },
|
||||
{ PROC_LINKS(delete_alpha_numeric_boundary, 0), "delete_alpha_numeric_boundary", 29, "Delete characters between the cursor position and the first alphanumeric boundary to the right.", 95, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 156 },
|
||||
{ PROC_LINKS(snipe_backward_whitespace_or_token_boundary, 0), "snipe_backward_whitespace_or_token_boundary", 43, "Delete a single, whole token on or to the left of the cursor and post it to the clipboard.", 90, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 176 },
|
||||
{ PROC_LINKS(snipe_forward_whitespace_or_token_boundary, 0), "snipe_forward_whitespace_or_token_boundary", 42, "Delete a single, whole token on or to the right of the cursor and post it to the clipboard.", 91, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 184 },
|
||||
{ PROC_LINKS(center_view, 0), "center_view", 11, "Centers the view vertically on the line on which the cursor sits.", 65, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 197 },
|
||||
{ PROC_LINKS(left_adjust_view, 0), "left_adjust_view", 16, "Sets the left size of the view near the x position of the cursor.", 65, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 211 },
|
||||
{ PROC_LINKS(click_set_cursor_and_mark, 0), "click_set_cursor_and_mark", 25, "Sets the cursor position and mark to the mouse position.", 56, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 223 },
|
||||
{ PROC_LINKS(click_set_cursor, 0), "click_set_cursor", 16, "Sets the cursor position to the mouse position.", 47, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 235 },
|
||||
{ PROC_LINKS(click_set_cursor_if_lbutton, 0), "click_set_cursor_if_lbutton", 27, "If the mouse left button is pressed, sets the cursor position to the mouse position.", 84, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 247 },
|
||||
{ PROC_LINKS(click_set_mark, 0), "click_set_mark", 14, "Sets the mark position to the mouse position.", 45, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 261 },
|
||||
{ PROC_LINKS(mouse_wheel_scroll, 0), "mouse_wheel_scroll", 18, "Reads the scroll wheel value from the mouse state and scrolls accordingly.", 74, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 273 },
|
||||
{ PROC_LINKS(move_up, 0), "move_up", 7, "Moves the cursor up one line.", 29, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 334 },
|
||||
{ PROC_LINKS(move_down, 0), "move_down", 9, "Moves the cursor down one line.", 31, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 340 },
|
||||
{ PROC_LINKS(move_up_10, 0), "move_up_10", 10, "Moves the cursor up ten lines.", 30, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 346 },
|
||||
{ PROC_LINKS(move_down_10, 0), "move_down_10", 12, "Moves the cursor down ten lines.", 32, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 352 },
|
||||
{ PROC_LINKS(move_down_textual, 0), "move_down_textual", 17, "Moves down to the next line of actual text, regardless of line wrapping.", 72, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 358 },
|
||||
{ PROC_LINKS(page_up, 0), "page_up", 7, "Scrolls the view up one view height and moves the cursor up one view height.", 76, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 368 },
|
||||
{ PROC_LINKS(page_down, 0), "page_down", 9, "Scrolls the view down one view height and moves the cursor down one view height.", 80, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 376 },
|
||||
{ PROC_LINKS(move_up_to_blank_line, 0), "move_up_to_blank_line", 21, "Seeks the cursor up to the next blank line.", 43, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 405 },
|
||||
{ PROC_LINKS(move_down_to_blank_line, 0), "move_down_to_blank_line", 23, "Seeks the cursor down to the next blank line.", 45, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 411 },
|
||||
{ PROC_LINKS(move_up_to_blank_line_skip_whitespace, 0), "move_up_to_blank_line_skip_whitespace", 37, "Seeks the cursor up to the next blank line and places it at the end of the line.", 80, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 417 },
|
||||
{ PROC_LINKS(move_down_to_blank_line_skip_whitespace, 0), "move_down_to_blank_line_skip_whitespace", 39, "Seeks the cursor down to the next blank line and places it at the end of the line.", 82, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 423 },
|
||||
{ PROC_LINKS(move_up_to_blank_line_end, 0), "move_up_to_blank_line_end", 25, "Seeks the cursor up to the next blank line and places it at the end of the line.", 80, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 429 },
|
||||
{ PROC_LINKS(move_down_to_blank_line_end, 0), "move_down_to_blank_line_end", 27, "Seeks the cursor down to the next blank line and places it at the end of the line.", 82, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 435 },
|
||||
{ PROC_LINKS(move_left, 0), "move_left", 9, "Moves the cursor one character to the left.", 43, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 441 },
|
||||
{ PROC_LINKS(move_right, 0), "move_right", 10, "Moves the cursor one character to the right.", 44, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 453 },
|
||||
{ PROC_LINKS(move_right_whitespace_boundary, 0), "move_right_whitespace_boundary", 30, "Seek right for the next boundary between whitespace and non-whitespace.", 71, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 475 },
|
||||
{ PROC_LINKS(move_left_whitespace_boundary, 0), "move_left_whitespace_boundary", 29, "Seek left for the next boundary between whitespace and non-whitespace.", 70, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 483 },
|
||||
{ PROC_LINKS(move_right_token_boundary, 0), "move_right_token_boundary", 25, "Seek right for the next end of a token.", 39, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 491 },
|
||||
{ PROC_LINKS(move_left_token_boundary, 0), "move_left_token_boundary", 24, "Seek left for the next beginning of a token.", 44, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 499 },
|
||||
{ PROC_LINKS(move_right_whitespace_or_token_boundary, 0), "move_right_whitespace_or_token_boundary", 39, "Seek right for the next end of a token or boundary between whitespace and non-whitespace.", 89, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 507 },
|
||||
{ PROC_LINKS(move_left_whitespace_or_token_boundary, 0), "move_left_whitespace_or_token_boundary", 38, "Seek left for the next end of a token or boundary between whitespace and non-whitespace.", 88, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 515 },
|
||||
{ PROC_LINKS(move_right_alpha_numeric_boundary, 0), "move_right_alpha_numeric_boundary", 33, "Seek right for boundary between alphanumeric characters and non-alphanumeric characters.", 88, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 523 },
|
||||
{ PROC_LINKS(move_left_alpha_numeric_boundary, 0), "move_left_alpha_numeric_boundary", 32, "Seek left for boundary between alphanumeric characters and non-alphanumeric characters.", 87, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 531 },
|
||||
{ PROC_LINKS(move_right_alpha_numeric_or_camel_boundary, 0), "move_right_alpha_numeric_or_camel_boundary", 42, "Seek right for boundary between alphanumeric characters or camel case word and non-alphanumeric characters.", 107, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 539 },
|
||||
{ PROC_LINKS(move_left_alpha_numeric_or_camel_boundary, 0), "move_left_alpha_numeric_or_camel_boundary", 41, "Seek left for boundary between alphanumeric characters or camel case word and non-alphanumeric characters.", 106, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 547 },
|
||||
{ PROC_LINKS(select_all, 0), "select_all", 10, "Puts the cursor at the top of the file, and the mark at the bottom of the file.", 79, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 568 },
|
||||
{ PROC_LINKS(to_uppercase, 0), "to_uppercase", 12, "Converts all ascii text in the range between the cursor and the mark to uppercase.", 82, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 581 },
|
||||
{ PROC_LINKS(to_lowercase, 0), "to_lowercase", 12, "Converts all ascii text in the range between the cursor and the mark to lowercase.", 82, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 594 },
|
||||
{ PROC_LINKS(clean_all_lines, 0), "clean_all_lines", 15, "Removes trailing whitespace from all lines in the current buffer.", 65, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 607 },
|
||||
{ PROC_LINKS(basic_change_active_panel, 0), "basic_change_active_panel", 25, "Change the currently active panel, moving to the panel with the next highest view_id. Will not skipe the build panel if it is open.", 132, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 641 },
|
||||
{ PROC_LINKS(close_panel, 0), "close_panel", 11, "Closes the currently active panel if it is not the only panel open.", 67, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 649 },
|
||||
{ PROC_LINKS(show_scrollbar, 0), "show_scrollbar", 14, "Sets the current view to show it's scrollbar.", 45, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 658 },
|
||||
{ PROC_LINKS(hide_scrollbar, 0), "hide_scrollbar", 14, "Sets the current view to hide it's scrollbar.", 45, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 665 },
|
||||
{ PROC_LINKS(show_filebar, 0), "show_filebar", 12, "Sets the current view to show it's filebar.", 43, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 672 },
|
||||
{ PROC_LINKS(hide_filebar, 0), "hide_filebar", 12, "Sets the current view to hide it's filebar.", 43, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 679 },
|
||||
{ PROC_LINKS(toggle_filebar, 0), "toggle_filebar", 14, "Toggles the visibility status of the current view's filebar.", 60, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 686 },
|
||||
{ PROC_LINKS(toggle_line_wrap, 0), "toggle_line_wrap", 16, "Toggles the current buffer's line wrapping status.", 50, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 695 },
|
||||
{ PROC_LINKS(toggle_fps_meter, 0), "toggle_fps_meter", 16, "Toggles the visibility of the FPS performance meter", 51, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 708 },
|
||||
{ PROC_LINKS(increase_line_wrap, 0), "increase_line_wrap", 18, "Increases the current buffer's width for line wrapping.", 55, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 714 },
|
||||
{ PROC_LINKS(decrease_line_wrap, 0), "decrease_line_wrap", 18, "Decrases the current buffer's width for line wrapping.", 54, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 727 },
|
||||
{ PROC_LINKS(increase_face_size, 0), "increase_face_size", 18, "Increase the size of the face used by the current buffer.", 57, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 740 },
|
||||
{ PROC_LINKS(decrease_face_size, 0), "decrease_face_size", 18, "Decrease the size of the face used by the current buffer.", 57, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 751 },
|
||||
{ PROC_LINKS(mouse_wheel_change_face_size, 0), "mouse_wheel_change_face_size", 28, "Reads the state of the mouse wheel and uses it to either increase or decrease the face size.", 92, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 762 },
|
||||
{ PROC_LINKS(toggle_virtual_whitespace, 0), "toggle_virtual_whitespace", 25, "Toggles the current buffer's virtual whitespace status.", 55, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 779 },
|
||||
{ PROC_LINKS(toggle_show_whitespace, 0), "toggle_show_whitespace", 22, "Toggles the current buffer's whitespace visibility status.", 58, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 789 },
|
||||
{ PROC_LINKS(toggle_line_numbers, 0), "toggle_line_numbers", 19, "Toggles the left margin line numbers.", 37, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 798 },
|
||||
{ PROC_LINKS(eol_dosify, 0), "eol_dosify", 10, "Puts the buffer in DOS line ending mode.", 40, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 804 },
|
||||
{ PROC_LINKS(eol_nixify, 0), "eol_nixify", 10, "Puts the buffer in NIX line ending mode.", 40, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 812 },
|
||||
{ PROC_LINKS(exit_4coder, 0), "exit_4coder", 11, "Attempts to close 4coder.", 25, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 820 },
|
||||
{ PROC_LINKS(goto_line, 0), "goto_line", 9, "Queries the user for a number, and jumps the cursor to the corresponding line.", 78, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 828 },
|
||||
{ PROC_LINKS(search, 0), "search", 6, "Begins an incremental search down through the current buffer for a user specified string.", 89, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1039 },
|
||||
{ PROC_LINKS(reverse_search, 0), "reverse_search", 14, "Begins an incremental search up through the current buffer for a user specified string.", 87, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1045 },
|
||||
{ PROC_LINKS(search_identifier, 0), "search_identifier", 17, "Begins an incremental search down through the current buffer for the word or token under the cursor.", 100, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1051 },
|
||||
{ PROC_LINKS(reverse_search_identifier, 0), "reverse_search_identifier", 25, "Begins an incremental search up through the current buffer for the word or token under the cursor.", 98, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1062 },
|
||||
{ PROC_LINKS(replace_in_range, 0), "replace_in_range", 16, "Queries the user for a needle and string. Replaces all occurences of needle with string in the range between cursor and the mark in the active buffer.", 150, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1113 },
|
||||
{ PROC_LINKS(replace_in_buffer, 0), "replace_in_buffer", 17, "Queries the user for a needle and string. Replaces all occurences of needle with string in the active buffer.", 109, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1122 },
|
||||
{ PROC_LINKS(replace_in_all_buffers, 0), "replace_in_all_buffers", 22, "Queries the user for a needle and string. Replaces all occurences of needle with string in all editable buffers.", 112, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1131 },
|
||||
{ PROC_LINKS(query_replace, 0), "query_replace", 13, "Queries the user for two strings, and incrementally replaces every occurence of the first string with the second string.", 120, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1219 },
|
||||
{ PROC_LINKS(query_replace_identifier, 0), "query_replace_identifier", 24, "Queries the user for a string, and incrementally replace every occurence of the word or token found at the cursor with the specified string.", 140, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1239 },
|
||||
{ PROC_LINKS(query_replace_selection, 0), "query_replace_selection", 23, "Queries the user for a string, and incrementally replace every occurence of the string found in the selected range with the specified string.", 141, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1255 },
|
||||
{ PROC_LINKS(save_all_dirty_buffers, 0), "save_all_dirty_buffers", 22, "Saves all buffers marked dirty (showing the '*' indicator).", 59, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1290 },
|
||||
{ PROC_LINKS(delete_file_query, 0), "delete_file_query", 17, "Deletes the file of the current buffer if 4coder has the appropriate access rights. Will ask the user for confirmation first.", 125, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1315 },
|
||||
{ PROC_LINKS(save_to_query, 0), "save_to_query", 13, "Queries the user for a file name and saves the contents of the current buffer, altering the buffer's name too.", 110, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1353 },
|
||||
{ PROC_LINKS(rename_file_query, 0), "rename_file_query", 17, "Queries the user for a new name and renames the file of the current buffer, altering the buffer's name too.", 107, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1388 },
|
||||
{ PROC_LINKS(make_directory_query, 0), "make_directory_query", 20, "Queries the user for a name and creates a new directory with the given name.", 76, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1428 },
|
||||
{ PROC_LINKS(move_line_up, 0), "move_line_up", 12, "Swaps the line under the cursor with the line above it, and moves the cursor up with it.", 88, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1461 },
|
||||
{ PROC_LINKS(move_line_down, 0), "move_line_down", 14, "Swaps the line under the cursor with the line below it, and moves the cursor down with it.", 90, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1467 },
|
||||
{ PROC_LINKS(duplicate_line, 0), "duplicate_line", 14, "Create a copy of the line on which the cursor sits.", 51, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1473 },
|
||||
{ PROC_LINKS(delete_line, 0), "delete_line", 11, "Delete the line the on which the cursor sits.", 45, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1487 },
|
||||
{ PROC_LINKS(open_file_in_quotes, 0), "open_file_in_quotes", 19, "Reads a filename from surrounding '\"' characters and attempts to open the corresponding file.", 94, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1552 },
|
||||
{ PROC_LINKS(open_matching_file_cpp, 0), "open_matching_file_cpp", 22, "If the current file is a *.cpp or *.h, attempts to open the corresponding *.h or *.cpp file in the other view.", 110, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1584 },
|
||||
{ PROC_LINKS(view_buffer_other_panel, 0), "view_buffer_other_panel", 23, "Set the other non-active panel to view the buffer that the active panel views, and switch to that panel.", 104, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1597 },
|
||||
{ PROC_LINKS(swap_buffers_between_panels, 0), "swap_buffers_between_panels", 27, "Set the other non-active panel to view the buffer that the active panel views, and switch to that panel.", 104, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1609 },
|
||||
{ PROC_LINKS(kill_buffer, 0), "kill_buffer", 11, "Kills the current buffer.", 25, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1645 },
|
||||
{ PROC_LINKS(save, 0), "save", 4, "Saves the current buffer.", 25, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1653 },
|
||||
{ PROC_LINKS(reopen, 0), "reopen", 6, "Reopen the current buffer from the hard drive.", 46, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1665 },
|
||||
{ PROC_LINKS(undo, 0), "undo", 4, "Advances backwards through the undo history of the current buffer.", 66, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1723 },
|
||||
{ PROC_LINKS(redo, 0), "redo", 4, "Advances forwards through the undo history of the current buffer.", 65, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1736 },
|
||||
{ PROC_LINKS(undo_all_buffers, 0), "undo_all_buffers", 16, "Advances backward through the undo history in the buffer containing the most recent regular edit.", 97, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1750 },
|
||||
{ PROC_LINKS(redo_all_buffers, 0), "redo_all_buffers", 16, "Advances forward through the undo history in the buffer containing the most recent regular edit.", 96, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1824 },
|
||||
{ PROC_LINKS(open_in_other, 0), "open_in_other", 13, "Interactively opens a file in the other panel.", 46, "w:\\4ed\\code\\4coder_base_commands.cpp", 36, 1927 },
|
||||
{ PROC_LINKS(lister__quit, 0), "lister__quit", 12, "A lister mode command that quits the list without executing any actions.", 72, "w:\\4ed\\code\\4coder_lists.cpp", 28, 8 },
|
||||
{ PROC_LINKS(lister__activate, 0), "lister__activate", 16, "A lister mode command that activates the list's action on the highlighted item.", 79, "w:\\4ed\\code\\4coder_lists.cpp", 28, 15 },
|
||||
{ PROC_LINKS(lister__write_character, 0), "lister__write_character", 23, "A lister mode command that dispatches to the lister's write character handler.", 78, "w:\\4ed\\code\\4coder_lists.cpp", 28, 30 },
|
||||
{ PROC_LINKS(lister__backspace_text_field, 0), "lister__backspace_text_field", 28, "A lister mode command that dispatches to the lister's backspace text field handler.", 83, "w:\\4ed\\code\\4coder_lists.cpp", 28, 40 },
|
||||
{ PROC_LINKS(lister__move_up, 0), "lister__move_up", 15, "A lister mode command that dispatches to the lister's navigate up handler.", 74, "w:\\4ed\\code\\4coder_lists.cpp", 28, 50 },
|
||||
{ PROC_LINKS(lister__move_down, 0), "lister__move_down", 17, "A lister mode command that dispatches to the lister's navigate down handler.", 76, "w:\\4ed\\code\\4coder_lists.cpp", 28, 60 },
|
||||
{ PROC_LINKS(lister__wheel_scroll, 0), "lister__wheel_scroll", 20, "A lister mode command that scrolls the list in response to the mouse wheel.", 75, "w:\\4ed\\code\\4coder_lists.cpp", 28, 70 },
|
||||
{ PROC_LINKS(lister__mouse_press, 0), "lister__mouse_press", 19, "A lister mode command that beings a click interaction with a list item under the mouse.", 87, "w:\\4ed\\code\\4coder_lists.cpp", 28, 84 },
|
||||
{ PROC_LINKS(lister__mouse_release, 0), "lister__mouse_release", 21, "A lister mode command that ends a click interaction with a list item under the mouse, possibly activating it.", 109, "w:\\4ed\\code\\4coder_lists.cpp", 28, 95 },
|
||||
{ PROC_LINKS(lister__repaint, 0), "lister__repaint", 15, "A lister mode command that updates the lists UI data.", 53, "w:\\4ed\\code\\4coder_lists.cpp", 28, 110 },
|
||||
{ PROC_LINKS(lister__write_character__default, 0), "lister__write_character__default", 32, "A lister mode command that inserts a new character to the text field.", 69, "w:\\4ed\\code\\4coder_lists.cpp", 28, 120 },
|
||||
{ PROC_LINKS(lister__backspace_text_field__default, 0), "lister__backspace_text_field__default", 37, "A lister mode command that backspaces one character from the text field.", 72, "w:\\4ed\\code\\4coder_lists.cpp", 28, 139 },
|
||||
{ PROC_LINKS(lister__move_up__default, 0), "lister__move_up__default", 24, "A lister mode command that moves the highlighted item one up in the list.", 73, "w:\\4ed\\code\\4coder_lists.cpp", 28, 153 },
|
||||
{ PROC_LINKS(lister__move_down__default, 0), "lister__move_down__default", 26, "A lister mode command that moves the highlighted item one down in the list.", 75, "w:\\4ed\\code\\4coder_lists.cpp", 28, 168 },
|
||||
{ PROC_LINKS(lister__write_character__file_path, 0), "lister__write_character__file_path", 34, "A lister mode command that inserts a character into the text field of a file system list.", 89, "w:\\4ed\\code\\4coder_lists.cpp", 28, 183 },
|
||||
{ PROC_LINKS(lister__backspace_text_field__file_path, 0), "lister__backspace_text_field__file_path", 39, "A lister mode command that backspaces one character from the text field of a file system list.", 94, "w:\\4ed\\code\\4coder_lists.cpp", 28, 208 },
|
||||
{ PROC_LINKS(lister__write_character__fixed_list, 0), "lister__write_character__fixed_list", 35, "A lister mode command that handles input for the fixed sure to kill list.", 73, "w:\\4ed\\code\\4coder_lists.cpp", 28, 249 },
|
||||
{ PROC_LINKS(interactive_switch_buffer, 0), "interactive_switch_buffer", 25, "Interactively switch to an open buffer.", 39, "w:\\4ed\\code\\4coder_lists.cpp", 28, 723 },
|
||||
{ PROC_LINKS(interactive_kill_buffer, 0), "interactive_kill_buffer", 23, "Interactively kill an open buffer.", 34, "w:\\4ed\\code\\4coder_lists.cpp", 28, 742 },
|
||||
{ PROC_LINKS(interactive_open_or_new, 0), "interactive_open_or_new", 23, "Interactively open a file out of the file system.", 49, "w:\\4ed\\code\\4coder_lists.cpp", 28, 815 },
|
||||
{ PROC_LINKS(interactive_new, 0), "interactive_new", 15, "Interactively creates a new file.", 33, "w:\\4ed\\code\\4coder_lists.cpp", 28, 854 },
|
||||
{ PROC_LINKS(interactive_open, 0), "interactive_open", 16, "Interactively opens a file.", 27, "w:\\4ed\\code\\4coder_lists.cpp", 28, 887 },
|
||||
{ PROC_LINKS(command_lister, 0), "command_lister", 14, "Opens an interactive list of all registered commands.", 53, "w:\\4ed\\code\\4coder_lists.cpp", 28, 969 },
|
||||
{ PROC_LINKS(auto_tab_whole_file, 0), "auto_tab_whole_file", 19, "Audo-indents the entire current buffer.", 39, "w:\\4ed\\code\\4coder_auto_indent.cpp", 34, 526 },
|
||||
{ PROC_LINKS(auto_tab_line_at_cursor, 0), "auto_tab_line_at_cursor", 23, "Auto-indents the line on which the cursor sits.", 47, "w:\\4ed\\code\\4coder_auto_indent.cpp", 34, 535 },
|
||||
{ PROC_LINKS(auto_tab_range, 0), "auto_tab_range", 14, "Auto-indents the range between the cursor and the mark.", 55, "w:\\4ed\\code\\4coder_auto_indent.cpp", 34, 545 },
|
||||
{ PROC_LINKS(write_and_auto_tab, 0), "write_and_auto_tab", 18, "Inserts a character and auto-indents the line on which the cursor sits.", 71, "w:\\4ed\\code\\4coder_auto_indent.cpp", 34, 555 },
|
||||
{ PROC_LINKS(list_all_locations, 0), "list_all_locations", 18, "Queries the user for a string and lists all exact case-sensitive matches found in all open buffers.", 99, "w:\\4ed\\code\\4coder_search.cpp", 29, 166 },
|
||||
{ PROC_LINKS(list_all_substring_locations, 0), "list_all_substring_locations", 28, "Queries the user for a string and lists all case-sensitive substring matches found in all open buffers.", 103, "w:\\4ed\\code\\4coder_search.cpp", 29, 172 },
|
||||
{ PROC_LINKS(list_all_locations_case_insensitive, 0), "list_all_locations_case_insensitive", 35, "Queries the user for a string and lists all exact case-insensitive matches found in all open buffers.", 101, "w:\\4ed\\code\\4coder_search.cpp", 29, 178 },
|
||||
{ PROC_LINKS(list_all_substring_locations_case_insensitive, 0), "list_all_substring_locations_case_insensitive", 45, "Queries the user for a string and lists all case-insensitive substring matches found in all open buffers.", 105, "w:\\4ed\\code\\4coder_search.cpp", 29, 184 },
|
||||
{ PROC_LINKS(list_all_locations_of_identifier, 0), "list_all_locations_of_identifier", 32, "Reads a token or word under the cursor and lists all exact case-sensitive mathces in all open buffers.", 102, "w:\\4ed\\code\\4coder_search.cpp", 29, 190 },
|
||||
{ PROC_LINKS(list_all_locations_of_identifier_case_insensitive, 0), "list_all_locations_of_identifier_case_insensitive", 49, "Reads a token or word under the cursor and lists all exact case-insensitive mathces in all open buffers.", 104, "w:\\4ed\\code\\4coder_search.cpp", 29, 196 },
|
||||
{ PROC_LINKS(list_all_locations_of_selection, 0), "list_all_locations_of_selection", 31, "Reads the string in the selected range and lists all exact case-sensitive mathces in all open buffers.", 102, "w:\\4ed\\code\\4coder_search.cpp", 29, 202 },
|
||||
{ PROC_LINKS(list_all_locations_of_selection_case_insensitive, 0), "list_all_locations_of_selection_case_insensitive", 48, "Reads the string in the selected range and lists all exact case-insensitive mathces in all open buffers.", 104, "w:\\4ed\\code\\4coder_search.cpp", 29, 208 },
|
||||
{ PROC_LINKS(list_all_locations_of_type_definition, 0), "list_all_locations_of_type_definition", 37, "Queries user for string, lists all locations of strings that appear to define a type whose name matches the input string.", 121, "w:\\4ed\\code\\4coder_search.cpp", 29, 214 },
|
||||
{ PROC_LINKS(list_all_locations_of_type_definition_of_identifier, 0), "list_all_locations_of_type_definition_of_identifier", 51, "Reads a token or word under the cursor and lists all locations of strings that appear to define a type whose name matches it.", 125, "w:\\4ed\\code\\4coder_search.cpp", 29, 222 },
|
||||
{ PROC_LINKS(word_complete, 0), "word_complete", 13, "Iteratively tries completing the word to the left of the cursor with other words in open buffers that have the same prefix string.", 130, "w:\\4ed\\code\\4coder_search.cpp", 29, 376 },
|
||||
{ PROC_LINKS(goto_jump_at_cursor, 0), "goto_jump_at_cursor", 19, "If the cursor is found to be on a jump location, parses the jump location and brings up the file and position in another view and changes the active panel to the view containing the jump.", 187, "w:\\4ed\\code\\4coder_jump_sticky.cpp", 34, 353 },
|
||||
{ PROC_LINKS(goto_jump_at_cursor_same_panel, 0), "goto_jump_at_cursor_same_panel", 30, "If the cursor is found to be on a jump location, parses the jump location and brings up the file and position in this view, losing the compilation output or jump list.", 167, "w:\\4ed\\code\\4coder_jump_sticky.cpp", 34, 380 },
|
||||
{ PROC_LINKS(goto_next_jump, 0), "goto_next_jump", 14, "If a buffer containing jump locations has been locked in, goes to the next jump in the buffer, skipping sub jump locations.", 123, "w:\\4ed\\code\\4coder_jump_sticky.cpp", 34, 469 },
|
||||
{ PROC_LINKS(goto_prev_jump, 0), "goto_prev_jump", 14, "If a buffer containing jump locations has been locked in, goes to the previous jump in the buffer, skipping sub jump locations.", 127, "w:\\4ed\\code\\4coder_jump_sticky.cpp", 34, 486 },
|
||||
{ PROC_LINKS(goto_next_jump_no_skips, 0), "goto_next_jump_no_skips", 23, "If a buffer containing jump locations has been locked in, goes to the next jump in the buffer, and does not skip sub jump locations.", 132, "w:\\4ed\\code\\4coder_jump_sticky.cpp", 34, 499 },
|
||||
{ PROC_LINKS(goto_prev_jump_no_skips, 0), "goto_prev_jump_no_skips", 23, "If a buffer containing jump locations has been locked in, goes to the previous jump in the buffer, and does not skip sub jump locations.", 136, "w:\\4ed\\code\\4coder_jump_sticky.cpp", 34, 516 },
|
||||
{ PROC_LINKS(goto_first_jump, 0), "goto_first_jump", 15, "If a buffer containing jump locations has been locked in, goes to the first jump in the buffer.", 95, "w:\\4ed\\code\\4coder_jump_sticky.cpp", 34, 530 },
|
||||
{ PROC_LINKS(goto_first_jump_same_panel_sticky, 0), "goto_first_jump_same_panel_sticky", 33, "If a buffer containing jump locations has been locked in, goes to the first jump in the buffer and views the buffer in the panel where the jump list was.", 153, "w:\\4ed\\code\\4coder_jump_sticky.cpp", 34, 547 },
|
||||
{ PROC_LINKS(newline_or_goto_position, 0), "newline_or_goto_position", 24, "If the buffer in the active view is writable, inserts a character, otherwise performs goto_jump_at_cursor.", 106, "w:\\4ed\\code\\4coder_jump_sticky.cpp", 34, 569 },
|
||||
{ PROC_LINKS(newline_or_goto_position_same_panel, 0), "newline_or_goto_position_same_panel", 35, "If the buffer in the active view is writable, inserts a character, otherwise performs goto_jump_at_cursor_same_panel.", 117, "w:\\4ed\\code\\4coder_jump_sticky.cpp", 34, 586 },
|
||||
{ PROC_LINKS(view_jump_list_with_lister, 0), "view_jump_list_with_lister", 26, "When executed on a buffer with jumps, creates a persistent lister for all the jumps", 83, "w:\\4ed\\code\\4coder_jump_lister.cpp", 34, 104 },
|
||||
{ PROC_LINKS(log_graph__escape, 0), "log_graph__escape", 17, "Ends the log grapher", 20, "w:\\4ed\\code\\4coder_log_parser.cpp", 33, 906 },
|
||||
{ PROC_LINKS(log_graph__scroll_wheel, 0), "log_graph__scroll_wheel", 23, "Scrolls the log graph", 21, "w:\\4ed\\code\\4coder_log_parser.cpp", 33, 915 },
|
||||
{ PROC_LINKS(log_graph__page_up, 0), "log_graph__page_up", 18, "Scroll the log graph up one whole page", 38, "w:\\4ed\\code\\4coder_log_parser.cpp", 33, 926 },
|
||||
{ PROC_LINKS(log_graph__page_down, 0), "log_graph__page_down", 20, "Scroll the log graph down one whole page", 40, "w:\\4ed\\code\\4coder_log_parser.cpp", 33, 934 },
|
||||
{ PROC_LINKS(log_graph__click_select_event, 0), "log_graph__click_select_event", 29, "Select the event record at the mouse point in the log graph", 59, "w:\\4ed\\code\\4coder_log_parser.cpp", 33, 968 },
|
||||
{ PROC_LINKS(log_graph__click_jump_to_event_source, 0), "log_graph__click_jump_to_event_source", 37, "Jump to the code that logged the event record at the mouse point in the log graph", 81, "w:\\4ed\\code\\4coder_log_parser.cpp", 33, 987 },
|
||||
{ PROC_LINKS(show_the_log_graph, 0), "show_the_log_graph", 18, "Parser *log* and displays the 'log graph' UI", 44, "w:\\4ed\\code\\4coder_log_parser.cpp", 33, 1035 },
|
||||
{ PROC_LINKS(copy, 0), "copy", 4, "Copy the text in the range from the cursor to the mark onto the clipboard.", 74, "w:\\4ed\\code\\4coder_clipboard.cpp", 32, 19 },
|
||||
{ PROC_LINKS(cut, 0), "cut", 3, "Cut the text in the range from the cursor to the mark onto the clipboard.", 73, "w:\\4ed\\code\\4coder_clipboard.cpp", 32, 28 },
|
||||
{ PROC_LINKS(paste, 0), "paste", 5, "At the cursor, insert the text at the top of the clipboard.", 59, "w:\\4ed\\code\\4coder_clipboard.cpp", 32, 39 },
|
||||
{ PROC_LINKS(paste_next, 0), "paste_next", 10, "If the previous command was paste or paste_next, replaces the paste range with the next text down on the clipboard, otherwise operates as the paste command.", 156, "w:\\4ed\\code\\4coder_clipboard.cpp", 32, 73 },
|
||||
{ PROC_LINKS(paste_and_indent, 0), "paste_and_indent", 16, "Paste from the top of clipboard and run auto-indent on the newly pasted text.", 77, "w:\\4ed\\code\\4coder_clipboard.cpp", 32, 114 },
|
||||
{ PROC_LINKS(paste_next_and_indent, 0), "paste_next_and_indent", 21, "Paste the next item on the clipboard and run auto-indent on the newly pasted text.", 82, "w:\\4ed\\code\\4coder_clipboard.cpp", 32, 121 },
|
||||
{ PROC_LINKS(execute_previous_cli, 0), "execute_previous_cli", 20, "If the command execute_any_cli has already been used, this will execute a CLI reusing the most recent buffer name and command.", 126, "w:\\4ed\\code\\4coder_system_command.cpp", 37, 7 },
|
||||
{ PROC_LINKS(execute_any_cli, 0), "execute_any_cli", 15, "Queries for an output buffer name and system command, runs the system command as a CLI and prints the output to the specified buffer.", 133, "w:\\4ed\\code\\4coder_system_command.cpp", 37, 22 },
|
||||
{ PROC_LINKS(build_search, 0), "build_search", 12, "Looks for a build.bat, build.sh, or makefile in the current and parent directories. Runs the first that it finds and prints the output to *compilation*.", 153, "w:\\4ed\\code\\4coder_build_commands.cpp", 37, 128 },
|
||||
{ PROC_LINKS(build_in_build_panel, 0), "build_in_build_panel", 20, "Looks for a build.bat, build.sh, or makefile in the current and parent directories. Runs the first that it finds and prints the output to *compilation*. Puts the *compilation* buffer in a panel at the footer of the current view.", 230, "w:\\4ed\\code\\4coder_build_commands.cpp", 37, 163 },
|
||||
{ PROC_LINKS(close_build_panel, 0), "close_build_panel", 17, "If the special build panel is open, closes it.", 46, "w:\\4ed\\code\\4coder_build_commands.cpp", 37, 178 },
|
||||
{ PROC_LINKS(change_to_build_panel, 0), "change_to_build_panel", 21, "If the special build panel is open, makes the build panel the active panel.", 75, "w:\\4ed\\code\\4coder_build_commands.cpp", 37, 184 },
|
||||
{ PROC_LINKS(close_all_code, 0), "close_all_code", 14, "Closes any buffer with a filename ending with an extension configured to be recognized as a code file type.", 107, "w:\\4ed\\code\\4coder_project_commands.cpp", 39, 921 },
|
||||
{ PROC_LINKS(open_all_code, 0), "open_all_code", 13, "Open all code in the current directory. File types are determined by extensions. An extension is considered code based on the extensions specified in 4coder.config.", 164, "w:\\4ed\\code\\4coder_project_commands.cpp", 39, 927 },
|
||||
{ PROC_LINKS(open_all_code_recursive, 0), "open_all_code_recursive", 23, "Works as open_all_code but also runs in all subdirectories.", 59, "w:\\4ed\\code\\4coder_project_commands.cpp", 39, 933 },
|
||||
{ PROC_LINKS(load_project, 0), "load_project", 12, "Looks for a project.4coder file in the current directory and tries to load it. Looks in parent directories until a project file is found or there are no more parents.", 167, "w:\\4ed\\code\\4coder_project_commands.cpp", 39, 941 },
|
||||
{ PROC_LINKS(project_fkey_command, 0), "project_fkey_command", 20, "Run an 'fkey command' configured in a project.4coder file. Determines the index of the 'fkey command' by which function key or numeric key was pressed to trigger the command.", 175, "w:\\4ed\\code\\4coder_project_commands.cpp", 39, 948 },
|
||||
{ PROC_LINKS(project_go_to_root_directory, 0), "project_go_to_root_directory", 28, "Changes 4coder's hot directory to the root directory of the currently loaded project. With no loaded project nothing hapepns.", 125, "w:\\4ed\\code\\4coder_project_commands.cpp", 39, 971 },
|
||||
{ PROC_LINKS(setup_new_project, 0), "setup_new_project", 17, "Queries the user for several configuration options and initializes a new 4coder project with build scripts for every OS.", 120, "w:\\4ed\\code\\4coder_project_commands.cpp", 39, 1306 },
|
||||
{ PROC_LINKS(setup_build_bat, 0), "setup_build_bat", 15, "Queries the user for several configuration options and initializes a new build batch script.", 92, "w:\\4ed\\code\\4coder_project_commands.cpp", 39, 1313 },
|
||||
{ PROC_LINKS(setup_build_sh, 0), "setup_build_sh", 14, "Queries the user for several configuration options and initializes a new build shell script.", 92, "w:\\4ed\\code\\4coder_project_commands.cpp", 39, 1319 },
|
||||
{ PROC_LINKS(setup_build_bat_and_sh, 0), "setup_build_bat_and_sh", 22, "Queries the user for several configuration options and initializes a new build batch script.", 92, "w:\\4ed\\code\\4coder_project_commands.cpp", 39, 1325 },
|
||||
{ PROC_LINKS(project_command_lister, 0), "project_command_lister", 22, "Open a lister of all commands in the currently loaded project.", 62, "w:\\4ed\\code\\4coder_project_commands.cpp", 39, 1340 },
|
||||
{ PROC_LINKS(list_all_functions_current_buffer, 0), "list_all_functions_current_buffer", 33, "Creates a jump list of lines of the current buffer that appear to define or declare functions.", 94, "w:\\4ed\\code\\4coder_function_list.cpp", 36, 276 },
|
||||
{ PROC_LINKS(list_all_functions_current_buffer_lister, 0), "list_all_functions_current_buffer_lister", 40, "Creates a lister of locations that look like function definitions and declarations in the buffer.", 97, "w:\\4ed\\code\\4coder_function_list.cpp", 36, 286 },
|
||||
{ PROC_LINKS(list_all_functions_all_buffers, 0), "list_all_functions_all_buffers", 30, "Creates a jump list of lines from all buffers that appear to define or declare functions.", 89, "w:\\4ed\\code\\4coder_function_list.cpp", 36, 298 },
|
||||
{ PROC_LINKS(list_all_functions_all_buffers_lister, 0), "list_all_functions_all_buffers_lister", 37, "Creates a lister of locations that look like function definitions and declarations all buffers.", 95, "w:\\4ed\\code\\4coder_function_list.cpp", 36, 304 },
|
||||
{ PROC_LINKS(select_surrounding_scope, 0), "select_surrounding_scope", 24, "Finds the scope enclosed by '{' '}' surrounding the cursor and puts the cursor and mark on the '{' and '}'.", 107, "w:\\4ed\\code\\4coder_scope_commands.cpp", 37, 352 },
|
||||
{ PROC_LINKS(select_next_scope_absolute, 0), "select_next_scope_absolute", 26, "Finds the first scope started by '{' after the cursor and puts the cursor and mark on the '{' and '}'.", 102, "w:\\4ed\\code\\4coder_scope_commands.cpp", 37, 367 },
|
||||
{ PROC_LINKS(select_prev_scope_absolute, 0), "select_prev_scope_absolute", 26, "Finds the first scope started by '{' before the cursor and puts the cursor and mark on the '{' and '}'.", 103, "w:\\4ed\\code\\4coder_scope_commands.cpp", 37, 386 },
|
||||
{ PROC_LINKS(place_in_scope, 0), "place_in_scope", 14, "Wraps the code contained in the range between cursor and mark with a new curly brace scope.", 91, "w:\\4ed\\code\\4coder_scope_commands.cpp", 37, 460 },
|
||||
{ PROC_LINKS(delete_current_scope, 0), "delete_current_scope", 20, "Deletes the braces surrounding the currently selected scope. Leaves the contents within the scope.", 99, "w:\\4ed\\code\\4coder_scope_commands.cpp", 37, 466 },
|
||||
{ PROC_LINKS(scope_absorb_down, 0), "scope_absorb_down", 17, "If a scope is currently selected, and a statement or block statement is present below the current scope, the statement is moved into the scope.", 143, "w:\\4ed\\code\\4coder_scope_commands.cpp", 37, 698 },
|
||||
{ PROC_LINKS(open_long_braces, 0), "open_long_braces", 16, "At the cursor, insert a '{' and '}' separated by a blank line.", 62, "w:\\4ed\\code\\4coder_combined_write_commands.cpp", 46, 46 },
|
||||
{ PROC_LINKS(open_long_braces_semicolon, 0), "open_long_braces_semicolon", 26, "At the cursor, insert a '{' and '};' separated by a blank line.", 63, "w:\\4ed\\code\\4coder_combined_write_commands.cpp", 46, 54 },
|
||||
{ PROC_LINKS(open_long_braces_break, 0), "open_long_braces_break", 22, "At the cursor, insert a '{' and '}break;' separated by a blank line.", 68, "w:\\4ed\\code\\4coder_combined_write_commands.cpp", 46, 62 },
|
||||
{ PROC_LINKS(if0_off, 0), "if0_off", 7, "Surround the range between the cursor and mark with an '#if 0' and an '#endif'", 78, "w:\\4ed\\code\\4coder_combined_write_commands.cpp", 46, 70 },
|
||||
{ PROC_LINKS(write_todo, 0), "write_todo", 10, "At the cursor, insert a '// TODO' comment, includes user name if it was specified in config.4coder.", 99, "w:\\4ed\\code\\4coder_combined_write_commands.cpp", 46, 76 },
|
||||
{ PROC_LINKS(write_hack, 0), "write_hack", 10, "At the cursor, insert a '// HACK' comment, includes user name if it was specified in config.4coder.", 99, "w:\\4ed\\code\\4coder_combined_write_commands.cpp", 46, 82 },
|
||||
{ PROC_LINKS(write_note, 0), "write_note", 10, "At the cursor, insert a '// NOTE' comment, includes user name if it was specified in config.4coder.", 99, "w:\\4ed\\code\\4coder_combined_write_commands.cpp", 46, 88 },
|
||||
{ PROC_LINKS(write_block, 0), "write_block", 11, "At the cursor, insert a block comment.", 38, "w:\\4ed\\code\\4coder_combined_write_commands.cpp", 46, 94 },
|
||||
{ PROC_LINKS(write_zero_struct, 0), "write_zero_struct", 17, "At the cursor, insert a ' = {};'.", 33, "w:\\4ed\\code\\4coder_combined_write_commands.cpp", 46, 100 },
|
||||
{ PROC_LINKS(comment_line, 0), "comment_line", 12, "Insert '//' at the beginning of the line after leading whitespace.", 66, "w:\\4ed\\code\\4coder_combined_write_commands.cpp", 46, 125 },
|
||||
{ PROC_LINKS(uncomment_line, 0), "uncomment_line", 14, "If present, delete '//' at the beginning of the line after leading whitespace.", 78, "w:\\4ed\\code\\4coder_combined_write_commands.cpp", 46, 137 },
|
||||
{ PROC_LINKS(comment_line_toggle, 0), "comment_line_toggle", 19, "Turns uncommented lines into commented lines and vice versa for comments starting with '//'.", 92, "w:\\4ed\\code\\4coder_combined_write_commands.cpp", 46, 149 },
|
||||
{ PROC_LINKS(snippet_lister, 0), "snippet_lister", 14, "Opens a snippet lister for inserting whole pre-written snippets of text.", 72, "w:\\4ed\\code\\4coder_combined_write_commands.cpp", 46, 235 },
|
||||
{ PROC_LINKS(set_bindings_choose, 0), "set_bindings_choose", 19, "Remap keybindings using the 'choose' mapping rule.", 50, "w:\\4ed\\code\\4coder_remapping_commands.cpp", 41, 41 },
|
||||
{ PROC_LINKS(set_bindings_default, 0), "set_bindings_default", 20, "Remap keybindings using the 'default' mapping rule.", 51, "w:\\4ed\\code\\4coder_remapping_commands.cpp", 41, 51 },
|
||||
{ PROC_LINKS(set_bindings_mac_default, 0), "set_bindings_mac_default", 24, "Remap keybindings using the 'mac-default' mapping rule.", 55, "w:\\4ed\\code\\4coder_remapping_commands.cpp", 41, 66 },
|
||||
{ PROC_LINKS(miblo_increment_basic, 0), "miblo_increment_basic", 21, "Increment an integer under the cursor by one.", 45, "w:\\4ed\\code\\4coder_miblo_numbers.cpp", 36, 29 },
|
||||
{ PROC_LINKS(miblo_decrement_basic, 0), "miblo_decrement_basic", 21, "Decrement an integer under the cursor by one.", 45, "w:\\4ed\\code\\4coder_miblo_numbers.cpp", 36, 44 },
|
||||
{ PROC_LINKS(miblo_increment_time_stamp, 0), "miblo_increment_time_stamp", 26, "Increment a time stamp under the cursor by one second. (format [m]m:ss or h:mm:ss", 81, "w:\\4ed\\code\\4coder_miblo_numbers.cpp", 36, 231 },
|
||||
{ PROC_LINKS(miblo_decrement_time_stamp, 0), "miblo_decrement_time_stamp", 26, "Decrement a time stamp under the cursor by one second. (format [m]m:ss or h:mm:ss", 81, "w:\\4ed\\code\\4coder_miblo_numbers.cpp", 36, 237 },
|
||||
{ PROC_LINKS(miblo_increment_time_stamp_minute, 0), "miblo_increment_time_stamp_minute", 33, "Increment a time stamp under the cursor by one minute. (format [m]m:ss or h:mm:ss", 81, "w:\\4ed\\code\\4coder_miblo_numbers.cpp", 36, 243 },
|
||||
{ PROC_LINKS(miblo_decrement_time_stamp_minute, 0), "miblo_decrement_time_stamp_minute", 33, "Decrement a time stamp under the cursor by one minute. (format [m]m:ss or h:mm:ss", 81, "w:\\4ed\\code\\4coder_miblo_numbers.cpp", 36, 249 },
|
||||
{ PROC_LINKS(rename_parameter, 0), "rename_parameter", 16, "If the cursor is found to be on the name of a function parameter in the signature of a function definition, all occurences within the scope of the function will be replaced with a new provided string.", 200, "w:\\4ed\\code\\4coder_experiments.cpp", 34, 187 },
|
||||
{ PROC_LINKS(write_explicit_enum_values, 0), "write_explicit_enum_values", 26, "If the cursor is found to be on the '{' of an enum definition, the values of the enum will be filled in sequentially starting from zero. Existing values are overwritten.", 170, "w:\\4ed\\code\\4coder_experiments.cpp", 34, 496 },
|
||||
static Command_Metadata fcoder_metacmd_table[0] = {
|
||||
};
|
||||
static int32_t fcoder_metacmd_ID_write_explicit_enum_flags = 0;
|
||||
static int32_t fcoder_metacmd_ID_seek_beginning_of_textual_line = 1;
|
||||
static int32_t fcoder_metacmd_ID_seek_end_of_textual_line = 2;
|
||||
static int32_t fcoder_metacmd_ID_seek_beginning_of_line = 3;
|
||||
static int32_t fcoder_metacmd_ID_seek_end_of_line = 4;
|
||||
static int32_t fcoder_metacmd_ID_goto_beginning_of_file = 5;
|
||||
static int32_t fcoder_metacmd_ID_goto_end_of_file = 6;
|
||||
static int32_t fcoder_metacmd_ID_change_active_panel = 7;
|
||||
static int32_t fcoder_metacmd_ID_change_active_panel_backwards = 8;
|
||||
static int32_t fcoder_metacmd_ID_open_panel_vsplit = 9;
|
||||
static int32_t fcoder_metacmd_ID_open_panel_hsplit = 10;
|
||||
static int32_t fcoder_metacmd_ID_suppress_mouse = 11;
|
||||
static int32_t fcoder_metacmd_ID_allow_mouse = 12;
|
||||
static int32_t fcoder_metacmd_ID_toggle_mouse = 13;
|
||||
static int32_t fcoder_metacmd_ID_set_mode_to_original = 14;
|
||||
static int32_t fcoder_metacmd_ID_set_mode_to_notepad_like = 15;
|
||||
static int32_t fcoder_metacmd_ID_toggle_highlight_line_at_cursor = 16;
|
||||
static int32_t fcoder_metacmd_ID_toggle_highlight_enclosing_scopes = 17;
|
||||
static int32_t fcoder_metacmd_ID_toggle_paren_matching_helper = 18;
|
||||
static int32_t fcoder_metacmd_ID_toggle_fullscreen = 19;
|
||||
static int32_t fcoder_metacmd_ID_remap_interactive = 20;
|
||||
static int32_t fcoder_metacmd_ID_write_character = 21;
|
||||
static int32_t fcoder_metacmd_ID_write_underscore = 22;
|
||||
static int32_t fcoder_metacmd_ID_delete_char = 23;
|
||||
static int32_t fcoder_metacmd_ID_backspace_char = 24;
|
||||
static int32_t fcoder_metacmd_ID_set_mark = 25;
|
||||
static int32_t fcoder_metacmd_ID_cursor_mark_swap = 26;
|
||||
static int32_t fcoder_metacmd_ID_delete_range = 27;
|
||||
static int32_t fcoder_metacmd_ID_backspace_alpha_numeric_boundary = 28;
|
||||
static int32_t fcoder_metacmd_ID_delete_alpha_numeric_boundary = 29;
|
||||
static int32_t fcoder_metacmd_ID_snipe_backward_whitespace_or_token_boundary = 30;
|
||||
static int32_t fcoder_metacmd_ID_snipe_forward_whitespace_or_token_boundary = 31;
|
||||
static int32_t fcoder_metacmd_ID_center_view = 32;
|
||||
static int32_t fcoder_metacmd_ID_left_adjust_view = 33;
|
||||
static int32_t fcoder_metacmd_ID_click_set_cursor_and_mark = 34;
|
||||
static int32_t fcoder_metacmd_ID_click_set_cursor = 35;
|
||||
static int32_t fcoder_metacmd_ID_click_set_cursor_if_lbutton = 36;
|
||||
static int32_t fcoder_metacmd_ID_click_set_mark = 37;
|
||||
static int32_t fcoder_metacmd_ID_mouse_wheel_scroll = 38;
|
||||
static int32_t fcoder_metacmd_ID_move_up = 39;
|
||||
static int32_t fcoder_metacmd_ID_move_down = 40;
|
||||
static int32_t fcoder_metacmd_ID_move_up_10 = 41;
|
||||
static int32_t fcoder_metacmd_ID_move_down_10 = 42;
|
||||
static int32_t fcoder_metacmd_ID_move_down_textual = 43;
|
||||
static int32_t fcoder_metacmd_ID_page_up = 44;
|
||||
static int32_t fcoder_metacmd_ID_page_down = 45;
|
||||
static int32_t fcoder_metacmd_ID_move_up_to_blank_line = 46;
|
||||
static int32_t fcoder_metacmd_ID_move_down_to_blank_line = 47;
|
||||
static int32_t fcoder_metacmd_ID_move_up_to_blank_line_skip_whitespace = 48;
|
||||
static int32_t fcoder_metacmd_ID_move_down_to_blank_line_skip_whitespace = 49;
|
||||
static int32_t fcoder_metacmd_ID_move_up_to_blank_line_end = 50;
|
||||
static int32_t fcoder_metacmd_ID_move_down_to_blank_line_end = 51;
|
||||
static int32_t fcoder_metacmd_ID_move_left = 52;
|
||||
static int32_t fcoder_metacmd_ID_move_right = 53;
|
||||
static int32_t fcoder_metacmd_ID_move_right_whitespace_boundary = 54;
|
||||
static int32_t fcoder_metacmd_ID_move_left_whitespace_boundary = 55;
|
||||
static int32_t fcoder_metacmd_ID_move_right_token_boundary = 56;
|
||||
static int32_t fcoder_metacmd_ID_move_left_token_boundary = 57;
|
||||
static int32_t fcoder_metacmd_ID_move_right_whitespace_or_token_boundary = 58;
|
||||
static int32_t fcoder_metacmd_ID_move_left_whitespace_or_token_boundary = 59;
|
||||
static int32_t fcoder_metacmd_ID_move_right_alpha_numeric_boundary = 60;
|
||||
static int32_t fcoder_metacmd_ID_move_left_alpha_numeric_boundary = 61;
|
||||
static int32_t fcoder_metacmd_ID_move_right_alpha_numeric_or_camel_boundary = 62;
|
||||
static int32_t fcoder_metacmd_ID_move_left_alpha_numeric_or_camel_boundary = 63;
|
||||
static int32_t fcoder_metacmd_ID_select_all = 64;
|
||||
static int32_t fcoder_metacmd_ID_to_uppercase = 65;
|
||||
static int32_t fcoder_metacmd_ID_to_lowercase = 66;
|
||||
static int32_t fcoder_metacmd_ID_clean_all_lines = 67;
|
||||
static int32_t fcoder_metacmd_ID_basic_change_active_panel = 68;
|
||||
static int32_t fcoder_metacmd_ID_close_panel = 69;
|
||||
static int32_t fcoder_metacmd_ID_show_scrollbar = 70;
|
||||
static int32_t fcoder_metacmd_ID_hide_scrollbar = 71;
|
||||
static int32_t fcoder_metacmd_ID_show_filebar = 72;
|
||||
static int32_t fcoder_metacmd_ID_hide_filebar = 73;
|
||||
static int32_t fcoder_metacmd_ID_toggle_filebar = 74;
|
||||
static int32_t fcoder_metacmd_ID_toggle_line_wrap = 75;
|
||||
static int32_t fcoder_metacmd_ID_toggle_fps_meter = 76;
|
||||
static int32_t fcoder_metacmd_ID_increase_line_wrap = 77;
|
||||
static int32_t fcoder_metacmd_ID_decrease_line_wrap = 78;
|
||||
static int32_t fcoder_metacmd_ID_increase_face_size = 79;
|
||||
static int32_t fcoder_metacmd_ID_decrease_face_size = 80;
|
||||
static int32_t fcoder_metacmd_ID_mouse_wheel_change_face_size = 81;
|
||||
static int32_t fcoder_metacmd_ID_toggle_virtual_whitespace = 82;
|
||||
static int32_t fcoder_metacmd_ID_toggle_show_whitespace = 83;
|
||||
static int32_t fcoder_metacmd_ID_toggle_line_numbers = 84;
|
||||
static int32_t fcoder_metacmd_ID_eol_dosify = 85;
|
||||
static int32_t fcoder_metacmd_ID_eol_nixify = 86;
|
||||
static int32_t fcoder_metacmd_ID_exit_4coder = 87;
|
||||
static int32_t fcoder_metacmd_ID_goto_line = 88;
|
||||
static int32_t fcoder_metacmd_ID_search = 89;
|
||||
static int32_t fcoder_metacmd_ID_reverse_search = 90;
|
||||
static int32_t fcoder_metacmd_ID_search_identifier = 91;
|
||||
static int32_t fcoder_metacmd_ID_reverse_search_identifier = 92;
|
||||
static int32_t fcoder_metacmd_ID_replace_in_range = 93;
|
||||
static int32_t fcoder_metacmd_ID_replace_in_buffer = 94;
|
||||
static int32_t fcoder_metacmd_ID_replace_in_all_buffers = 95;
|
||||
static int32_t fcoder_metacmd_ID_query_replace = 96;
|
||||
static int32_t fcoder_metacmd_ID_query_replace_identifier = 97;
|
||||
static int32_t fcoder_metacmd_ID_query_replace_selection = 98;
|
||||
static int32_t fcoder_metacmd_ID_save_all_dirty_buffers = 99;
|
||||
static int32_t fcoder_metacmd_ID_delete_file_query = 100;
|
||||
static int32_t fcoder_metacmd_ID_save_to_query = 101;
|
||||
static int32_t fcoder_metacmd_ID_rename_file_query = 102;
|
||||
static int32_t fcoder_metacmd_ID_make_directory_query = 103;
|
||||
static int32_t fcoder_metacmd_ID_move_line_up = 104;
|
||||
static int32_t fcoder_metacmd_ID_move_line_down = 105;
|
||||
static int32_t fcoder_metacmd_ID_duplicate_line = 106;
|
||||
static int32_t fcoder_metacmd_ID_delete_line = 107;
|
||||
static int32_t fcoder_metacmd_ID_open_file_in_quotes = 108;
|
||||
static int32_t fcoder_metacmd_ID_open_matching_file_cpp = 109;
|
||||
static int32_t fcoder_metacmd_ID_view_buffer_other_panel = 110;
|
||||
static int32_t fcoder_metacmd_ID_swap_buffers_between_panels = 111;
|
||||
static int32_t fcoder_metacmd_ID_kill_buffer = 112;
|
||||
static int32_t fcoder_metacmd_ID_save = 113;
|
||||
static int32_t fcoder_metacmd_ID_reopen = 114;
|
||||
static int32_t fcoder_metacmd_ID_undo = 115;
|
||||
static int32_t fcoder_metacmd_ID_redo = 116;
|
||||
static int32_t fcoder_metacmd_ID_undo_all_buffers = 117;
|
||||
static int32_t fcoder_metacmd_ID_redo_all_buffers = 118;
|
||||
static int32_t fcoder_metacmd_ID_open_in_other = 119;
|
||||
static int32_t fcoder_metacmd_ID_lister__quit = 120;
|
||||
static int32_t fcoder_metacmd_ID_lister__activate = 121;
|
||||
static int32_t fcoder_metacmd_ID_lister__write_character = 122;
|
||||
static int32_t fcoder_metacmd_ID_lister__backspace_text_field = 123;
|
||||
static int32_t fcoder_metacmd_ID_lister__move_up = 124;
|
||||
static int32_t fcoder_metacmd_ID_lister__move_down = 125;
|
||||
static int32_t fcoder_metacmd_ID_lister__wheel_scroll = 126;
|
||||
static int32_t fcoder_metacmd_ID_lister__mouse_press = 127;
|
||||
static int32_t fcoder_metacmd_ID_lister__mouse_release = 128;
|
||||
static int32_t fcoder_metacmd_ID_lister__repaint = 129;
|
||||
static int32_t fcoder_metacmd_ID_lister__write_character__default = 130;
|
||||
static int32_t fcoder_metacmd_ID_lister__backspace_text_field__default = 131;
|
||||
static int32_t fcoder_metacmd_ID_lister__move_up__default = 132;
|
||||
static int32_t fcoder_metacmd_ID_lister__move_down__default = 133;
|
||||
static int32_t fcoder_metacmd_ID_lister__write_character__file_path = 134;
|
||||
static int32_t fcoder_metacmd_ID_lister__backspace_text_field__file_path = 135;
|
||||
static int32_t fcoder_metacmd_ID_lister__write_character__fixed_list = 136;
|
||||
static int32_t fcoder_metacmd_ID_interactive_switch_buffer = 137;
|
||||
static int32_t fcoder_metacmd_ID_interactive_kill_buffer = 138;
|
||||
static int32_t fcoder_metacmd_ID_interactive_open_or_new = 139;
|
||||
static int32_t fcoder_metacmd_ID_interactive_new = 140;
|
||||
static int32_t fcoder_metacmd_ID_interactive_open = 141;
|
||||
static int32_t fcoder_metacmd_ID_command_lister = 142;
|
||||
static int32_t fcoder_metacmd_ID_auto_tab_whole_file = 143;
|
||||
static int32_t fcoder_metacmd_ID_auto_tab_line_at_cursor = 144;
|
||||
static int32_t fcoder_metacmd_ID_auto_tab_range = 145;
|
||||
static int32_t fcoder_metacmd_ID_write_and_auto_tab = 146;
|
||||
static int32_t fcoder_metacmd_ID_list_all_locations = 147;
|
||||
static int32_t fcoder_metacmd_ID_list_all_substring_locations = 148;
|
||||
static int32_t fcoder_metacmd_ID_list_all_locations_case_insensitive = 149;
|
||||
static int32_t fcoder_metacmd_ID_list_all_substring_locations_case_insensitive = 150;
|
||||
static int32_t fcoder_metacmd_ID_list_all_locations_of_identifier = 151;
|
||||
static int32_t fcoder_metacmd_ID_list_all_locations_of_identifier_case_insensitive = 152;
|
||||
static int32_t fcoder_metacmd_ID_list_all_locations_of_selection = 153;
|
||||
static int32_t fcoder_metacmd_ID_list_all_locations_of_selection_case_insensitive = 154;
|
||||
static int32_t fcoder_metacmd_ID_list_all_locations_of_type_definition = 155;
|
||||
static int32_t fcoder_metacmd_ID_list_all_locations_of_type_definition_of_identifier = 156;
|
||||
static int32_t fcoder_metacmd_ID_word_complete = 157;
|
||||
static int32_t fcoder_metacmd_ID_goto_jump_at_cursor = 158;
|
||||
static int32_t fcoder_metacmd_ID_goto_jump_at_cursor_same_panel = 159;
|
||||
static int32_t fcoder_metacmd_ID_goto_next_jump = 160;
|
||||
static int32_t fcoder_metacmd_ID_goto_prev_jump = 161;
|
||||
static int32_t fcoder_metacmd_ID_goto_next_jump_no_skips = 162;
|
||||
static int32_t fcoder_metacmd_ID_goto_prev_jump_no_skips = 163;
|
||||
static int32_t fcoder_metacmd_ID_goto_first_jump = 164;
|
||||
static int32_t fcoder_metacmd_ID_goto_first_jump_same_panel_sticky = 165;
|
||||
static int32_t fcoder_metacmd_ID_newline_or_goto_position = 166;
|
||||
static int32_t fcoder_metacmd_ID_newline_or_goto_position_same_panel = 167;
|
||||
static int32_t fcoder_metacmd_ID_view_jump_list_with_lister = 168;
|
||||
static int32_t fcoder_metacmd_ID_log_graph__escape = 169;
|
||||
static int32_t fcoder_metacmd_ID_log_graph__scroll_wheel = 170;
|
||||
static int32_t fcoder_metacmd_ID_log_graph__page_up = 171;
|
||||
static int32_t fcoder_metacmd_ID_log_graph__page_down = 172;
|
||||
static int32_t fcoder_metacmd_ID_log_graph__click_select_event = 173;
|
||||
static int32_t fcoder_metacmd_ID_log_graph__click_jump_to_event_source = 174;
|
||||
static int32_t fcoder_metacmd_ID_show_the_log_graph = 175;
|
||||
static int32_t fcoder_metacmd_ID_copy = 176;
|
||||
static int32_t fcoder_metacmd_ID_cut = 177;
|
||||
static int32_t fcoder_metacmd_ID_paste = 178;
|
||||
static int32_t fcoder_metacmd_ID_paste_next = 179;
|
||||
static int32_t fcoder_metacmd_ID_paste_and_indent = 180;
|
||||
static int32_t fcoder_metacmd_ID_paste_next_and_indent = 181;
|
||||
static int32_t fcoder_metacmd_ID_execute_previous_cli = 182;
|
||||
static int32_t fcoder_metacmd_ID_execute_any_cli = 183;
|
||||
static int32_t fcoder_metacmd_ID_build_search = 184;
|
||||
static int32_t fcoder_metacmd_ID_build_in_build_panel = 185;
|
||||
static int32_t fcoder_metacmd_ID_close_build_panel = 186;
|
||||
static int32_t fcoder_metacmd_ID_change_to_build_panel = 187;
|
||||
static int32_t fcoder_metacmd_ID_close_all_code = 188;
|
||||
static int32_t fcoder_metacmd_ID_open_all_code = 189;
|
||||
static int32_t fcoder_metacmd_ID_open_all_code_recursive = 190;
|
||||
static int32_t fcoder_metacmd_ID_load_project = 191;
|
||||
static int32_t fcoder_metacmd_ID_project_fkey_command = 192;
|
||||
static int32_t fcoder_metacmd_ID_project_go_to_root_directory = 193;
|
||||
static int32_t fcoder_metacmd_ID_setup_new_project = 194;
|
||||
static int32_t fcoder_metacmd_ID_setup_build_bat = 195;
|
||||
static int32_t fcoder_metacmd_ID_setup_build_sh = 196;
|
||||
static int32_t fcoder_metacmd_ID_setup_build_bat_and_sh = 197;
|
||||
static int32_t fcoder_metacmd_ID_project_command_lister = 198;
|
||||
static int32_t fcoder_metacmd_ID_list_all_functions_current_buffer = 199;
|
||||
static int32_t fcoder_metacmd_ID_list_all_functions_current_buffer_lister = 200;
|
||||
static int32_t fcoder_metacmd_ID_list_all_functions_all_buffers = 201;
|
||||
static int32_t fcoder_metacmd_ID_list_all_functions_all_buffers_lister = 202;
|
||||
static int32_t fcoder_metacmd_ID_select_surrounding_scope = 203;
|
||||
static int32_t fcoder_metacmd_ID_select_next_scope_absolute = 204;
|
||||
static int32_t fcoder_metacmd_ID_select_prev_scope_absolute = 205;
|
||||
static int32_t fcoder_metacmd_ID_place_in_scope = 206;
|
||||
static int32_t fcoder_metacmd_ID_delete_current_scope = 207;
|
||||
static int32_t fcoder_metacmd_ID_scope_absorb_down = 208;
|
||||
static int32_t fcoder_metacmd_ID_open_long_braces = 209;
|
||||
static int32_t fcoder_metacmd_ID_open_long_braces_semicolon = 210;
|
||||
static int32_t fcoder_metacmd_ID_open_long_braces_break = 211;
|
||||
static int32_t fcoder_metacmd_ID_if0_off = 212;
|
||||
static int32_t fcoder_metacmd_ID_write_todo = 213;
|
||||
static int32_t fcoder_metacmd_ID_write_hack = 214;
|
||||
static int32_t fcoder_metacmd_ID_write_note = 215;
|
||||
static int32_t fcoder_metacmd_ID_write_block = 216;
|
||||
static int32_t fcoder_metacmd_ID_write_zero_struct = 217;
|
||||
static int32_t fcoder_metacmd_ID_comment_line = 218;
|
||||
static int32_t fcoder_metacmd_ID_uncomment_line = 219;
|
||||
static int32_t fcoder_metacmd_ID_comment_line_toggle = 220;
|
||||
static int32_t fcoder_metacmd_ID_snippet_lister = 221;
|
||||
static int32_t fcoder_metacmd_ID_set_bindings_choose = 222;
|
||||
static int32_t fcoder_metacmd_ID_set_bindings_default = 223;
|
||||
static int32_t fcoder_metacmd_ID_set_bindings_mac_default = 224;
|
||||
static int32_t fcoder_metacmd_ID_miblo_increment_basic = 225;
|
||||
static int32_t fcoder_metacmd_ID_miblo_decrement_basic = 226;
|
||||
static int32_t fcoder_metacmd_ID_miblo_increment_time_stamp = 227;
|
||||
static int32_t fcoder_metacmd_ID_miblo_decrement_time_stamp = 228;
|
||||
static int32_t fcoder_metacmd_ID_miblo_increment_time_stamp_minute = 229;
|
||||
static int32_t fcoder_metacmd_ID_miblo_decrement_time_stamp_minute = 230;
|
||||
static int32_t fcoder_metacmd_ID_rename_parameter = 231;
|
||||
static int32_t fcoder_metacmd_ID_write_explicit_enum_values = 232;
|
||||
#endif
|
||||
|
|
|
@ -26,12 +26,18 @@ make_malloc_base_allocator(void){
|
|||
|
||||
global Base_Allocator malloc_base_allocator = {};
|
||||
|
||||
internal Arena
|
||||
make_arena_malloc(umem chunk_size, umem align){
|
||||
internal Base_Allocator*
|
||||
get_allocator_malloc(void){
|
||||
if (malloc_base_allocator.reserve == 0){
|
||||
malloc_base_allocator = make_malloc_base_allocator();
|
||||
}
|
||||
return(make_arena(&malloc_base_allocator, chunk_size, align));
|
||||
return(&malloc_base_allocator);
|
||||
}
|
||||
|
||||
internal Arena
|
||||
make_arena_malloc(umem chunk_size, umem align){
|
||||
Base_Allocator *allocator = get_allocator_malloc();
|
||||
return(make_arena(allocator, chunk_size, align));
|
||||
}
|
||||
|
||||
internal Arena
|
||||
|
|
|
@ -7,14 +7,14 @@
|
|||
#define COMMAND_METADATA_OUT "4coder_generated/command_metadata.h"
|
||||
|
||||
#include "4coder_base_types.h"
|
||||
#include "4coder_token.h"
|
||||
|
||||
#include "4coder_base_types.cpp"
|
||||
#include "4coder_stringf.cpp"
|
||||
#include "4coder_malloc_allocator.cpp"
|
||||
|
||||
#include "4coder_file.h"
|
||||
|
||||
#include "4coder_lib/4cpp_lexer.h"
|
||||
#include "languages/4coder_language_cpp.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
@ -26,24 +26,24 @@
|
|||
///////////////////////////////
|
||||
|
||||
struct Line_Column_Coordinates{
|
||||
int32_t line;
|
||||
int32_t column;
|
||||
i64 line;
|
||||
i64 column;
|
||||
};
|
||||
|
||||
static Line_Column_Coordinates
|
||||
line_column_coordinates(String_Const_char text, int32_t pos){
|
||||
line_column_coordinates(String_Const_u8 text, i64 pos){
|
||||
if (pos < 0){
|
||||
pos = 0;
|
||||
}
|
||||
if (pos > text.size){
|
||||
pos = (i32)text.size;
|
||||
if (pos > (i64)text.size){
|
||||
pos = (i64)text.size;
|
||||
}
|
||||
|
||||
Line_Column_Coordinates coords = {};
|
||||
coords.line = 1;
|
||||
coords.column = 1;
|
||||
char *end = text.str + pos;
|
||||
for (char *p = text.str; p < end; ++p){
|
||||
u8 *end = text.str + pos;
|
||||
for (u8 *p = text.str; p < end; ++p){
|
||||
if (*p == '\n'){
|
||||
++coords.line;
|
||||
coords.column = 1;
|
||||
|
@ -56,16 +56,17 @@ line_column_coordinates(String_Const_char text, int32_t pos){
|
|||
return(coords);
|
||||
}
|
||||
|
||||
static int32_t
|
||||
line_number(String_Const_char text, int32_t pos){
|
||||
static i64
|
||||
line_number(String_Const_u8 text, i64 pos){
|
||||
Line_Column_Coordinates coords = line_column_coordinates(text, pos);
|
||||
return(coords.line);
|
||||
}
|
||||
|
||||
static void
|
||||
error(char *source_name, String_Const_char text, int32_t pos, char *msg){
|
||||
error(u8 *source_name, String_Const_u8 text, i64 pos, u8 *msg){
|
||||
Line_Column_Coordinates coords = line_column_coordinates(text, pos);
|
||||
fprintf(stdout, "%s:%d:%d: %s\n", source_name, coords.line, coords.column, msg);
|
||||
fprintf(stdout, "%s:%lld:%lld: %s\n",
|
||||
source_name, coords.line, coords.column, msg);
|
||||
fflush(stdout);
|
||||
}
|
||||
|
||||
|
@ -73,8 +74,8 @@ error(char *source_name, String_Const_char text, int32_t pos, char *msg){
|
|||
|
||||
struct Reader{
|
||||
Arena *error_arena;
|
||||
char *source_name;
|
||||
String_Const_char text;
|
||||
u8 *source_name;
|
||||
String_Const_u8 text;
|
||||
Token_Array tokens;
|
||||
Token *ptr;
|
||||
};
|
||||
|
@ -85,7 +86,7 @@ struct Temp_Read{
|
|||
};
|
||||
|
||||
static Reader
|
||||
make_reader(Cpp_Token_Array array, char *source_name, String_Const_char text){
|
||||
make_reader(Token_Array array, u8 *source_name, String_Const_u8 text){
|
||||
Reader reader = {};
|
||||
reader.tokens = array;
|
||||
reader.ptr = array.tokens;
|
||||
|
@ -113,7 +114,8 @@ prev_token(Reader *reader){
|
|||
break;
|
||||
}
|
||||
|
||||
if (result.type != CPP_TOKEN_COMMENT && result.type != CPP_TOKEN_JUNK){
|
||||
if (result.kind != TokenBaseKind_Comment &&
|
||||
result.kind != TokenBaseKind_LexError){
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -137,11 +139,12 @@ get_token(Reader *reader){
|
|||
else{
|
||||
reader->ptr = reader->tokens.tokens + reader->tokens.count;
|
||||
memset(&result, 0, sizeof(result));
|
||||
result.start = (i32)reader->text.size;
|
||||
result.pos = reader->text.size;
|
||||
break;
|
||||
}
|
||||
|
||||
if (result.type != CPP_TOKEN_COMMENT && result.type != CPP_TOKEN_JUNK){
|
||||
if (result.kind != TokenBaseKind_Comment &&
|
||||
result.kind != TokenBaseKind_LexError){
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -158,7 +161,7 @@ peek_token(Reader *reader){
|
|||
}
|
||||
|
||||
if (reader->ptr >= reader->tokens.tokens + reader->tokens.count){
|
||||
result.start = (i32)reader->text.size;
|
||||
result.pos = reader->text.size;
|
||||
}
|
||||
else{
|
||||
result = *reader->ptr;
|
||||
|
@ -167,20 +170,19 @@ peek_token(Reader *reader){
|
|||
return(result);
|
||||
}
|
||||
|
||||
static int32_t
|
||||
static i64
|
||||
peek_pos(Reader *reader){
|
||||
Token token = peek_token(reader);
|
||||
return(token.start);
|
||||
return(token.pos);
|
||||
}
|
||||
|
||||
static int32_t
|
||||
line_number(Reader *reader, int32_t pos){
|
||||
int32_t result = line_number(reader->text, pos);
|
||||
return(result);
|
||||
static i64
|
||||
line_number(Reader *reader, i64 pos){
|
||||
return(line_number(reader->text, pos));
|
||||
}
|
||||
|
||||
static void
|
||||
error(Reader *reader, int32_t pos, char *msg){
|
||||
error(Reader *reader, i64 pos, u8 *msg){
|
||||
error(reader->source_name, reader->text, pos, msg);
|
||||
}
|
||||
|
||||
|
@ -199,15 +201,15 @@ end_temp_read(Temp_Read temp){
|
|||
|
||||
///////////////////////////////
|
||||
|
||||
static String_Const_char
|
||||
token_str(String_Const_char text, Token token){
|
||||
String_Const_char str = string_prefix(string_skip(text, token.start), token.size);
|
||||
static String_Const_u8
|
||||
token_str(String_Const_u8 text, Token token){
|
||||
String_Const_u8 str = string_prefix(string_skip(text, token.pos), token.size);
|
||||
return(str);
|
||||
}
|
||||
|
||||
///////////////////////////////
|
||||
|
||||
typedef uint32_t Meta_Command_Entry_Type;
|
||||
typedef u32 Meta_Command_Entry_Type;
|
||||
enum{
|
||||
MetaCommandEntry_DocString,
|
||||
MetaCommandEntry_Alias,
|
||||
|
@ -215,15 +217,15 @@ enum{
|
|||
|
||||
struct Meta_Command_Entry{
|
||||
Meta_Command_Entry *next;
|
||||
String_Const_char name;
|
||||
char *source_name;
|
||||
int32_t line_number;
|
||||
String_Const_u8 name;
|
||||
u8 *source_name;
|
||||
i64 line_number;
|
||||
union{
|
||||
struct{
|
||||
String_Const_char doc;
|
||||
String_Const_u8 doc;
|
||||
} docstring;
|
||||
struct{
|
||||
String_Const_char potential;
|
||||
String_Const_u8 potential;
|
||||
} alias;
|
||||
};
|
||||
};
|
||||
|
@ -231,21 +233,21 @@ struct Meta_Command_Entry{
|
|||
struct Meta_Command_Entry_Arrays{
|
||||
Meta_Command_Entry *first_doc_string;
|
||||
Meta_Command_Entry *last_doc_string;
|
||||
int32_t doc_string_count;
|
||||
i32 doc_string_count;
|
||||
|
||||
Meta_Command_Entry *first_alias;
|
||||
Meta_Command_Entry *last_alias;
|
||||
int32_t alias_count;
|
||||
i32 alias_count;
|
||||
};
|
||||
|
||||
///////////////////////////////
|
||||
|
||||
static int32_t
|
||||
quick_sort_part(Meta_Command_Entry **entries, int32_t first, int32_t one_past_last){
|
||||
int32_t pivot = one_past_last - 1;
|
||||
String_Const_char pivot_key = entries[pivot]->name;
|
||||
int32_t j = first;
|
||||
for (int32_t i = first; i < pivot; ++i){
|
||||
static i32
|
||||
quick_sort_part(Meta_Command_Entry **entries, i32 first, i32 one_past_last){
|
||||
i32 pivot = one_past_last - 1;
|
||||
String_Const_u8 pivot_key = entries[pivot]->name;
|
||||
i32 j = first;
|
||||
for (i32 i = first; i < pivot; ++i){
|
||||
if (string_compare(entries[i]->name, pivot_key) < 0){
|
||||
Swap(Meta_Command_Entry*, entries[i], entries[j]);
|
||||
++j;
|
||||
|
@ -256,19 +258,19 @@ quick_sort_part(Meta_Command_Entry **entries, int32_t first, int32_t one_past_la
|
|||
}
|
||||
|
||||
static void
|
||||
quick_sort(Meta_Command_Entry **entries, int32_t first, int32_t one_past_last){
|
||||
quick_sort(Meta_Command_Entry **entries, i32 first, i32 one_past_last){
|
||||
if (first + 1 < one_past_last){
|
||||
int32_t pivot = quick_sort_part(entries, first, one_past_last);
|
||||
i32 pivot = quick_sort_part(entries, first, one_past_last);
|
||||
quick_sort(entries, first, pivot);
|
||||
quick_sort(entries, pivot + 1, one_past_last);
|
||||
}
|
||||
}
|
||||
|
||||
static Meta_Command_Entry**
|
||||
get_sorted_meta_commands(Arena *arena, Meta_Command_Entry *first, int32_t count){
|
||||
get_sorted_meta_commands(Arena *arena, Meta_Command_Entry *first, i32 count){
|
||||
Meta_Command_Entry **entries = push_array(arena, Meta_Command_Entry*, count);
|
||||
|
||||
int32_t i = 0;
|
||||
i32 i = 0;
|
||||
for (Meta_Command_Entry *entry = first;
|
||||
entry != 0;
|
||||
entry = entry->next, ++i){
|
||||
|
@ -284,7 +286,7 @@ get_sorted_meta_commands(Arena *arena, Meta_Command_Entry *first, int32_t count)
|
|||
///////////////////////////////
|
||||
|
||||
static b32
|
||||
has_duplicate_entry(Meta_Command_Entry *first, String_Const_char name){
|
||||
has_duplicate_entry(Meta_Command_Entry *first, String_Const_u8 name){
|
||||
b32 has_duplicate = false;
|
||||
for (Meta_Command_Entry *entry = first;
|
||||
entry != 0;
|
||||
|
@ -299,26 +301,25 @@ has_duplicate_entry(Meta_Command_Entry *first, String_Const_char name){
|
|||
///////////////////////////////
|
||||
|
||||
static b32
|
||||
require_key_identifier(Reader *reader, char *str, int32_t *opt_pos_out = 0){
|
||||
require_key_identifier(Reader *reader, String_Const_u8 string, i64 *opt_pos_out){
|
||||
b32 success = false;
|
||||
|
||||
String_Const_char string = SCchar(str);
|
||||
|
||||
Token token = get_token(reader);
|
||||
if (token.type == CPP_TOKEN_IDENTIFIER){
|
||||
String_Const_char lexeme = token_str(reader->text, token);
|
||||
if (token.kind == TokenBaseKind_Identifier){
|
||||
String_Const_u8 lexeme = token_str(reader->text, token);
|
||||
if (string_match(lexeme, string)){
|
||||
success = true;
|
||||
if (opt_pos_out != 0){
|
||||
*opt_pos_out = token.start;
|
||||
*opt_pos_out = token.pos;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!success){
|
||||
Temp_Memory temp = begin_temp(reader->error_arena);
|
||||
String_Const_char error_string = push_stringf(reader->error_arena, "expected to find '%s'", str);
|
||||
error(reader, token.start, error_string.str);
|
||||
String_Const_u8 error_string = push_u8_stringf(reader->error_arena, "expected to find '%.*s'",
|
||||
string.size, string.str);
|
||||
error(reader, token.pos, error_string.str);
|
||||
end_temp(temp);
|
||||
}
|
||||
|
||||
|
@ -326,153 +327,198 @@ require_key_identifier(Reader *reader, char *str, int32_t *opt_pos_out = 0){
|
|||
}
|
||||
|
||||
static b32
|
||||
require_open_parenthese(Reader *reader, int32_t *opt_pos_out = 0){
|
||||
require_key_identifier(Reader *reader, char *str, i64 *opt_pos_out){
|
||||
return(require_key_identifier(reader, SCu8(str), opt_pos_out));
|
||||
}
|
||||
|
||||
static b32
|
||||
require_key_identifier(Reader *reader, String_Const_u8 string){
|
||||
return(require_key_identifier(reader, string, 0));
|
||||
}
|
||||
|
||||
static b32
|
||||
require_key_identifier(Reader *reader, char *str){
|
||||
return(require_key_identifier(reader, SCu8(str), 0));
|
||||
}
|
||||
|
||||
static b32
|
||||
require_open_parenthese(Reader *reader, i64 *opt_pos_out){
|
||||
b32 success = false;
|
||||
Token token = get_token(reader);
|
||||
if (token.kind == TokenBaseKind_ParentheticalOpen){
|
||||
success = true;
|
||||
if (opt_pos_out != 0){
|
||||
*opt_pos_out = token.pos;
|
||||
}
|
||||
}
|
||||
if (!success){
|
||||
error(reader, token.pos, (u8*)"expected to find '('");
|
||||
}
|
||||
return(success);
|
||||
}
|
||||
|
||||
static b32
|
||||
require_open_parenthese(Reader *reader){
|
||||
return(require_open_parenthese(reader, 0));
|
||||
}
|
||||
|
||||
static b32
|
||||
require_close_parenthese(Reader *reader, i64 *opt_pos_out){
|
||||
b32 success = false;
|
||||
Token token = get_token(reader);
|
||||
if (token.kind == TokenBaseKind_ParentheticalClose){
|
||||
success = true;
|
||||
if (opt_pos_out != 0){
|
||||
*opt_pos_out = token.pos;
|
||||
}
|
||||
}
|
||||
if (!success){
|
||||
error(reader, token.pos, (u8*)"expected to find ')'");
|
||||
}
|
||||
return(success);
|
||||
}
|
||||
|
||||
static b32
|
||||
require_close_parenthese(Reader *reader){
|
||||
return(require_close_parenthese(reader, 0));
|
||||
}
|
||||
|
||||
static b32
|
||||
require_comma(Reader *reader, i64 *opt_pos_out){
|
||||
b32 success = false;
|
||||
|
||||
Token token = get_token(reader);
|
||||
if (token.type == CPP_TOKEN_PARENTHESE_OPEN){
|
||||
if (token.sub_kind == TokenCppKind_Comma){
|
||||
success = true;
|
||||
if (opt_pos_out != 0){
|
||||
*opt_pos_out = token.start;
|
||||
*opt_pos_out = token.pos;
|
||||
}
|
||||
}
|
||||
|
||||
if (!success){
|
||||
error(reader, token.start, "expected to find '('");
|
||||
error(reader, token.pos, (u8*)"expected to find ','");
|
||||
}
|
||||
|
||||
return(success);
|
||||
}
|
||||
|
||||
static b32
|
||||
require_close_parenthese(Reader *reader, int32_t *opt_pos_out = 0){
|
||||
require_comma(Reader *reader){
|
||||
return(require_comma(reader, 0));
|
||||
}
|
||||
|
||||
static b32
|
||||
require_define(Reader *reader, i64 *opt_pos_out){
|
||||
b32 success = false;
|
||||
|
||||
Token token = get_token(reader);
|
||||
if (token.type == CPP_TOKEN_PARENTHESE_CLOSE){
|
||||
if (token.sub_kind == TokenCppKind_Define){
|
||||
success = true;
|
||||
if (opt_pos_out != 0){
|
||||
*opt_pos_out = token.start;
|
||||
*opt_pos_out = token.pos;
|
||||
}
|
||||
}
|
||||
|
||||
if (!success){
|
||||
error(reader, token.start, "expected to find ')'");
|
||||
error(reader, token.pos, (u8*)"expected to find '#define'");
|
||||
}
|
||||
|
||||
return(success);
|
||||
}
|
||||
|
||||
static b32
|
||||
require_comma(Reader *reader, int32_t *opt_pos_out = 0){
|
||||
b32 success = false;
|
||||
|
||||
Token token = get_token(reader);
|
||||
if (token.type == CPP_TOKEN_COMMA){
|
||||
success = true;
|
||||
if (opt_pos_out != 0){
|
||||
*opt_pos_out = token.start;
|
||||
}
|
||||
}
|
||||
|
||||
if (!success){
|
||||
error(reader, token.start, "expected to find ','");
|
||||
}
|
||||
|
||||
return(success);
|
||||
require_define(Reader *reader){
|
||||
return(require_define(reader, 0));
|
||||
}
|
||||
|
||||
static b32
|
||||
require_define(Reader *reader, int32_t *opt_pos_out = 0){
|
||||
extract_identifier(Reader *reader, String_Const_u8 *str_out, i64 *opt_pos_out){
|
||||
b32 success = false;
|
||||
|
||||
Token token = get_token(reader);
|
||||
if (token.type == CPP_PP_DEFINE){
|
||||
success = true;
|
||||
if (opt_pos_out != 0){
|
||||
*opt_pos_out = token.start;
|
||||
}
|
||||
}
|
||||
|
||||
if (!success){
|
||||
error(reader, token.start, "expected to find '#define'");
|
||||
}
|
||||
|
||||
return(success);
|
||||
}
|
||||
|
||||
static b32
|
||||
extract_identifier(Reader *reader, String_Const_char *str_out, int32_t *opt_pos_out = 0){
|
||||
b32 success = false;
|
||||
|
||||
Token token = get_token(reader);
|
||||
if (token.type == CPP_TOKEN_IDENTIFIER){
|
||||
String_Const_char lexeme = token_str(reader->text, token);
|
||||
if (token.kind == TokenBaseKind_Identifier){
|
||||
String_Const_u8 lexeme = token_str(reader->text, token);
|
||||
*str_out = lexeme;
|
||||
success = true;
|
||||
if (opt_pos_out != 0){
|
||||
*opt_pos_out = token.start;
|
||||
*opt_pos_out = token.pos;
|
||||
}
|
||||
}
|
||||
|
||||
if (!success){
|
||||
error(reader, token.start, "expected to find an identifier");
|
||||
error(reader, token.pos, (u8*)"expected to find an identifier");
|
||||
}
|
||||
|
||||
return(success);
|
||||
}
|
||||
|
||||
static b32
|
||||
extract_integer(Reader *reader, String_Const_char *str_out, int32_t *opt_pos_out = 0){
|
||||
extract_identifier(Reader *reader, String_Const_u8 *str_out){
|
||||
return(extract_identifier(reader, str_out, 0));
|
||||
}
|
||||
|
||||
static b32
|
||||
extract_integer(Reader *reader, String_Const_u8 *str_out, i64 *opt_pos_out){
|
||||
b32 success = false;
|
||||
|
||||
Token token = get_token(reader);
|
||||
if (token.type == CPP_TOKEN_INTEGER_CONSTANT){
|
||||
String_Const_char lexeme = token_str(reader->text, token);
|
||||
if (token.kind == TokenBaseKind_LiteralInteger){
|
||||
String_Const_u8 lexeme = token_str(reader->text, token);
|
||||
*str_out = lexeme;
|
||||
success = true;
|
||||
if (opt_pos_out != 0){
|
||||
*opt_pos_out = token.start;
|
||||
*opt_pos_out = token.pos;
|
||||
}
|
||||
}
|
||||
|
||||
if (!success){
|
||||
error(reader, token.start, "expected to find an integer");
|
||||
error(reader, token.pos, (u8*)"expected to find an integer");
|
||||
}
|
||||
|
||||
return(success);
|
||||
}
|
||||
|
||||
|
||||
static b32
|
||||
extract_integer(Reader *reader, String_Const_u8 *str_out){
|
||||
return(extract_integer(reader, str_out, 0));
|
||||
}
|
||||
|
||||
static b32
|
||||
extract_string(Reader *reader, String_Const_u8 *str_out, i64 *opt_pos_out){
|
||||
b32 success = false;
|
||||
|
||||
Token token = get_token(reader);
|
||||
if (token.kind == TokenBaseKind_LiteralString){
|
||||
String_Const_u8 lexeme = token_str(reader->text, token);
|
||||
*str_out = lexeme;
|
||||
success = true;
|
||||
if (opt_pos_out != 0){
|
||||
*opt_pos_out = token.pos;
|
||||
}
|
||||
}
|
||||
|
||||
if (!success){
|
||||
error(reader, token.pos, (u8*)"expected to find a string literal");
|
||||
}
|
||||
|
||||
return(success);
|
||||
}
|
||||
|
||||
static b32
|
||||
extract_string(Reader *reader, String_Const_char *str_out, int32_t *opt_pos_out = 0){
|
||||
b32 success = false;
|
||||
|
||||
Token token = get_token(reader);
|
||||
if (token.type == CPP_TOKEN_STRING_CONSTANT){
|
||||
String_Const_char lexeme = token_str(reader->text, token);
|
||||
*str_out = lexeme;
|
||||
success = true;
|
||||
if (opt_pos_out != 0){
|
||||
*opt_pos_out = token.start;
|
||||
}
|
||||
}
|
||||
|
||||
if (!success){
|
||||
error(reader, token.start, "expected to find a string literal");
|
||||
}
|
||||
|
||||
return(success);
|
||||
extract_string(Reader *reader, String_Const_u8 *str_out){
|
||||
return(extract_string(reader, str_out, 0));
|
||||
}
|
||||
|
||||
static b32
|
||||
parse_documented_command(Arena *arena, Meta_Command_Entry_Arrays *arrays, Reader *reader){
|
||||
String_Const_char name = {};
|
||||
String_Const_char file_name = {};
|
||||
String_Const_char line_number = {};
|
||||
String_Const_char doc = {};
|
||||
String_Const_u8 name = {};
|
||||
String_Const_u8 file_name = {};
|
||||
String_Const_u8 line_number = {};
|
||||
String_Const_u8 doc = {};
|
||||
|
||||
// Getting the command's name
|
||||
int32_t start_pos = 0;
|
||||
i64 start_pos = 0;
|
||||
if (!require_key_identifier(reader, "CUSTOM_COMMAND_SIG", &start_pos)){
|
||||
return(false);
|
||||
}
|
||||
|
@ -514,13 +560,13 @@ parse_documented_command(Arena *arena, Meta_Command_Entry_Arrays *arrays, Reader
|
|||
return(false);
|
||||
}
|
||||
|
||||
int32_t doc_pos = 0;
|
||||
i64 doc_pos = 0;
|
||||
if (!extract_string(reader, &doc, &doc_pos)){
|
||||
return(false);
|
||||
}
|
||||
|
||||
if (doc.size < 1 || doc.str[0] != '"'){
|
||||
error(reader, doc_pos, "warning: doc strings with string literal prefixes not allowed");
|
||||
error(reader, doc_pos, (u8*)"warning: doc strings with string literal prefixes not allowed");
|
||||
return(false);
|
||||
}
|
||||
|
||||
|
@ -529,14 +575,14 @@ parse_documented_command(Arena *arena, Meta_Command_Entry_Arrays *arrays, Reader
|
|||
}
|
||||
|
||||
if (has_duplicate_entry(arrays->first_doc_string, name)){
|
||||
error(reader, start_pos, "warning: multiple commands with the same name and separate doc strings, skipping this one");
|
||||
error(reader, start_pos, (u8*)"warning: multiple commands with the same name and separate doc strings, skipping this one");
|
||||
return(false);
|
||||
}
|
||||
|
||||
doc = string_chop(string_skip(doc, 1), 1);
|
||||
|
||||
String_Const_char file_name_unquoted = string_chop(string_skip(file_name, 1), 1);
|
||||
String_Const_char source_name = string_interpret_escapes(arena, file_name_unquoted);
|
||||
String_Const_u8 file_name_unquoted = string_chop(string_skip(file_name, 1), 1);
|
||||
String_Const_u8 source_name = string_interpret_escapes(arena, file_name_unquoted);
|
||||
|
||||
Meta_Command_Entry *new_entry = push_array(arena, Meta_Command_Entry, 1);
|
||||
new_entry->name = name;
|
||||
|
@ -551,11 +597,11 @@ parse_documented_command(Arena *arena, Meta_Command_Entry_Arrays *arrays, Reader
|
|||
|
||||
static b32
|
||||
parse_alias(Arena *arena, Meta_Command_Entry_Arrays *arrays, Reader *reader){
|
||||
String_Const_char name = {};
|
||||
String_Const_char potential = {};
|
||||
String_Const_u8 name = {};
|
||||
String_Const_u8 potential = {};
|
||||
|
||||
// Getting the alias's name
|
||||
int32_t start_pos = 0;
|
||||
i64 start_pos = 0;
|
||||
if (!require_define(reader, &start_pos)){
|
||||
return(false);
|
||||
}
|
||||
|
@ -595,9 +641,9 @@ parse_alias(Arena *arena, Meta_Command_Entry_Arrays *arrays, Reader *reader){
|
|||
///////////////////////////////
|
||||
|
||||
static void
|
||||
parse_text(Arena *arena, Meta_Command_Entry_Arrays *entry_arrays, char *source_name, String_Const_char text){
|
||||
Token_Array array = cpp_make_token_array(1024);
|
||||
cpp_lex_file(text.str, (i32)text.size, &array);
|
||||
parse_text(Arena *arena, Meta_Command_Entry_Arrays *entry_arrays, u8 *source_name, String_Const_u8 text){
|
||||
Base_Allocator *allocator = get_allocator_malloc();
|
||||
Token_Array array = lex_cpp_initial(allocator, text);
|
||||
|
||||
Reader reader_ = make_reader(array, source_name, text);
|
||||
Reader *reader = &reader_;
|
||||
|
@ -605,25 +651,25 @@ parse_text(Arena *arena, Meta_Command_Entry_Arrays *entry_arrays, char *source_n
|
|||
for (;;){
|
||||
Token token = get_token(reader);
|
||||
|
||||
if (token.type == CPP_TOKEN_IDENTIFIER){
|
||||
String_Const_char lexeme = token_str(text, token);
|
||||
if (token.kind == TokenBaseKind_Identifier){
|
||||
String_Const_u8 lexeme = token_str(text, token);
|
||||
|
||||
b32 in_preproc_body = ((token.flags & CPP_TFLAG_PP_BODY) != 0);
|
||||
b32 in_preproc_body = HasFlag(token.flags, TokenBaseFlag_PreprocessorBody);
|
||||
|
||||
if (!in_preproc_body && string_match(lexeme, string_litexpr("CUSTOM_DOC"))){
|
||||
if (!in_preproc_body && string_match(lexeme, string_u8_litexpr("CUSTOM_DOC"))){
|
||||
Temp_Read temp_read = begin_temp_read(reader);
|
||||
|
||||
b32 found_start_pos = false;
|
||||
for (int32_t R = 0; R < 10; ++R){
|
||||
for (i32 R = 0; R < 10; ++R){
|
||||
Token p_token = prev_token(reader);
|
||||
if (p_token.type == CPP_TOKEN_IDENTIFIER){
|
||||
String_Const_char p_lexeme = token_str(text, p_token);
|
||||
if (string_match(p_lexeme, string_litexpr("CUSTOM_COMMAND_SIG"))){
|
||||
if (p_token.kind == TokenBaseKind_Identifier){
|
||||
String_Const_u8 p_lexeme = token_str(text, p_token);
|
||||
if (string_match(p_lexeme, string_u8_litexpr("CUSTOM_COMMAND_SIG"))){
|
||||
found_start_pos = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (p_token.type == 0){
|
||||
if (p_token.kind == TokenBaseKind_EOF){
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -637,19 +683,19 @@ parse_text(Arena *arena, Meta_Command_Entry_Arrays *entry_arrays, char *source_n
|
|||
}
|
||||
}
|
||||
}
|
||||
else if (string_match(lexeme, string_litexpr("CUSTOM_ALIAS"))){
|
||||
else if (string_match(lexeme, string_u8_litexpr("CUSTOM_ALIAS"))){
|
||||
Temp_Read temp_read = begin_temp_read(reader);
|
||||
|
||||
b32 found_start_pos = false;
|
||||
for (int32_t R = 0; R < 3; ++R){
|
||||
for (i32 R = 0; R < 3; ++R){
|
||||
Token p_token = prev_token(reader);
|
||||
if (p_token.type == CPP_PP_DEFINE){
|
||||
if (p_token.sub_kind == TokenCppKind_Define){
|
||||
if (R == 2){
|
||||
found_start_pos = true;
|
||||
}
|
||||
break;
|
||||
}
|
||||
if (p_token.type == 0){
|
||||
if (p_token.kind == TokenBaseKind_EOF){
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -665,16 +711,16 @@ parse_text(Arena *arena, Meta_Command_Entry_Arrays *entry_arrays, char *source_n
|
|||
}
|
||||
}
|
||||
|
||||
if (token.type == 0){
|
||||
if (token.kind == TokenBaseKind_EOF){
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
cpp_free_token_array(array);
|
||||
base_free(allocator, array.tokens);
|
||||
}
|
||||
|
||||
static void
|
||||
parse_file(Arena *arena, Meta_Command_Entry_Arrays *entry_arrays, Filename_Character *name_, int32_t len){
|
||||
parse_file(Arena *arena, Meta_Command_Entry_Arrays *entry_arrays, Filename_Character *name_, i32 len){
|
||||
char *name = unencode(arena, name_, len);
|
||||
if (name == 0){
|
||||
if (sizeof(*name_) == 2){
|
||||
|
@ -686,20 +732,20 @@ parse_file(Arena *arena, Meta_Command_Entry_Arrays *entry_arrays, Filename_Chara
|
|||
return;
|
||||
}
|
||||
|
||||
String_Const_char text = file_dump(arena, name);
|
||||
parse_text(arena, entry_arrays, name, text);
|
||||
String_Const_u8 text = file_dump(arena, name);
|
||||
parse_text(arena, entry_arrays, (u8*)name, text);
|
||||
}
|
||||
|
||||
static void
|
||||
parse_files_by_pattern(Arena *arena, Meta_Command_Entry_Arrays *entry_arrays, Filename_Character *pattern, b32 recursive){
|
||||
Cross_Platform_File_List list = get_file_list(arena, pattern, filter_all);
|
||||
for (int32_t i = 0; i < list.count; ++i){
|
||||
for (i32 i = 0; i < list.count; ++i){
|
||||
Cross_Platform_File_Info *info = &list.info[i];
|
||||
|
||||
String_Const_Any info_name = SCany(info->name, info->len);
|
||||
Temp_Memory temp = begin_temp(arena);
|
||||
String_Const_char info_name_ascii = string_char_from_any(arena, info_name);
|
||||
b32 is_generated = string_match(info_name_ascii, string_litexpr("4coder_generated"));
|
||||
String_Const_u8 info_name_ascii = string_u8_from_any(arena, info_name);
|
||||
b32 is_generated = string_match(info_name_ascii, string_u8_litexpr("4coder_generated"));
|
||||
end_temp(temp);
|
||||
|
||||
if (info->is_folder && is_generated){
|
||||
|
@ -709,7 +755,7 @@ parse_files_by_pattern(Arena *arena, Meta_Command_Entry_Arrays *entry_arrays, Fi
|
|||
continue;
|
||||
}
|
||||
|
||||
int32_t full_name_len = list.path_length + 1 + info->len;
|
||||
i32 full_name_len = list.path_length + 1 + info->len;
|
||||
if (info->is_folder){
|
||||
full_name_len += 2;
|
||||
}
|
||||
|
@ -752,7 +798,7 @@ main(int argc, char **argv){
|
|||
show_usage(argc, argv);
|
||||
}
|
||||
|
||||
b32 recursive = string_match(SCchar(argv[1]), string_litexpr("-R"));
|
||||
b32 recursive = string_match(SCu8(argv[1]), string_u8_litexpr("-R"));
|
||||
if (recursive && argc < 4){
|
||||
show_usage(argc, argv);
|
||||
}
|
||||
|
@ -762,13 +808,13 @@ main(int argc, char **argv){
|
|||
|
||||
char *out_directory = argv[2];
|
||||
|
||||
int32_t start_i = 2;
|
||||
i32 start_i = 2;
|
||||
if (recursive){
|
||||
start_i = 3;
|
||||
}
|
||||
|
||||
Meta_Command_Entry_Arrays entry_arrays = {};
|
||||
for (int32_t i = start_i; i < argc; ++i){
|
||||
for (i32 i = start_i; i < argc; ++i){
|
||||
Filename_Character *pattern_name = encode(arena, argv[i]);
|
||||
parse_files_by_pattern(arena, &entry_arrays, pattern_name, recursive);
|
||||
}
|
||||
|
@ -780,9 +826,9 @@ main(int argc, char **argv){
|
|||
}
|
||||
|
||||
{
|
||||
String_Const_char str = SCchar(out_directory, out_dir_len);
|
||||
String_Const_u8 str = SCu8(out_directory, out_dir_len);
|
||||
str = string_skip_chop_whitespace(str);
|
||||
out_directory = str.str;
|
||||
out_directory = (char*)str.str;
|
||||
out_dir_len = str.size;
|
||||
}
|
||||
|
||||
|
@ -795,7 +841,7 @@ main(int argc, char **argv){
|
|||
FILE *out = fopen(out_file_name, "wb");
|
||||
|
||||
if (out != 0){
|
||||
int32_t entry_count = entry_arrays.doc_string_count;
|
||||
i32 entry_count = entry_arrays.doc_string_count;
|
||||
Meta_Command_Entry **entries = get_sorted_meta_commands(arena, entry_arrays.first_doc_string, entry_count);
|
||||
|
||||
fprintf(out, "#if !defined(META_PASS)\n");
|
||||
|
@ -810,7 +856,7 @@ main(int argc, char **argv){
|
|||
fprintf(out, "#endif\n");
|
||||
|
||||
fprintf(out, "#if defined(CUSTOM_COMMAND_SIG)\n");
|
||||
for (int32_t i = 0; i < entry_count; ++i){
|
||||
for (i32 i = 0; i < entry_count; ++i){
|
||||
Meta_Command_Entry *entry = entries[i];
|
||||
fprintf(out, "CUSTOM_COMMAND_SIG(%.*s);\n", str_to_l_c(entry->name));
|
||||
}
|
||||
|
@ -820,18 +866,18 @@ main(int argc, char **argv){
|
|||
"struct Command_Metadata{\n"
|
||||
"PROC_LINKS(Custom_Command_Function, void) *proc;\n"
|
||||
"char *name;\n"
|
||||
"int32_t name_len;\n"
|
||||
"i32 name_len;\n"
|
||||
"char *description;\n"
|
||||
"int32_t description_len;\n"
|
||||
"i32 description_len;\n"
|
||||
"char *source_name;\n"
|
||||
"int32_t source_name_len;\n"
|
||||
"int32_t line_number;\n"
|
||||
"i32 source_name_len;\n"
|
||||
"i32 line_number;\n"
|
||||
"};\n");
|
||||
|
||||
fprintf(out,
|
||||
"static Command_Metadata fcoder_metacmd_table[%d] = {\n",
|
||||
entry_arrays.doc_string_count);
|
||||
for (int32_t i = 0; i < entry_count; ++i){
|
||||
for (i32 i = 0; i < entry_count; ++i){
|
||||
Meta_Command_Entry *entry = entries[i];
|
||||
|
||||
Temp_Memory temp = begin_temp(arena);
|
||||
|
@ -839,27 +885,31 @@ main(int argc, char **argv){
|
|||
// HACK(allen): We could just get these at the HEAD END of the process,
|
||||
// then we only have to do it once per file, and pass the lengths through.
|
||||
//umem source_name_len = cstring_length(entry->source_name);
|
||||
String_Const_char source_name = SCchar(entry->source_name);
|
||||
String_Const_char printable = string_replace(arena, source_name,
|
||||
SCchar("\\"), SCchar("\\\\"),
|
||||
StringFill_NullTerminate);
|
||||
String_Const_u8 source_name = SCu8(entry->source_name);
|
||||
String_Const_u8 printable = string_replace(arena, source_name,
|
||||
SCu8("\\"), SCu8("\\\\"),
|
||||
StringFill_NullTerminate);
|
||||
|
||||
fprintf(out,
|
||||
"{ PROC_LINKS(%.*s, 0), \"%.*s\", %d, \"%.*s\", %d, \"%s\", %d, %d },\n",
|
||||
str_to_l_c(entry->name),
|
||||
str_to_l_c(entry->name), (i32)entry->name.size,
|
||||
str_to_l_c(entry->docstring.doc), (i32)entry->docstring.doc.size,
|
||||
printable.str, (i32)source_name.size, entry->line_number);
|
||||
"{ PROC_LINKS(%.*s, 0), \"%.*s\", %d, \"%.*s\", %d, \"%s\", %d, %lld },\n",
|
||||
string_expand(entry->name),
|
||||
string_expand(entry->name),
|
||||
(i32)entry->name.size,
|
||||
string_expand(entry->docstring.doc),
|
||||
(i32)entry->docstring.doc.size,
|
||||
printable.str,
|
||||
(i32)source_name.size,
|
||||
entry->line_number);
|
||||
end_temp(temp);
|
||||
}
|
||||
fprintf(out, "};\n");
|
||||
|
||||
int32_t id = 0;
|
||||
for (int32_t i = 0; i < entry_count; ++i){
|
||||
i32 id = 0;
|
||||
for (i32 i = 0; i < entry_count; ++i){
|
||||
Meta_Command_Entry *entry = entries[i];
|
||||
|
||||
fprintf(out, "static int32_t fcoder_metacmd_ID_%.*s = %d;\n",
|
||||
str_to_l_c(entry->name), id);
|
||||
fprintf(out, "static i32 fcoder_metacmd_ID_%.*s = %d;\n",
|
||||
string_expand(entry->name), id);
|
||||
++id;
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,54 @@
|
|||
/*
|
||||
* 4coder token types
|
||||
*/
|
||||
|
||||
// TOP
|
||||
|
||||
#if !defined(FCODER_TOKEN_H)
|
||||
#define FCODER_TOKEN_H
|
||||
|
||||
typedef i16 Token_Base_Kind;
|
||||
enum{
|
||||
TokenBaseKind_EOF,
|
||||
TokenBaseKind_Whitespace,
|
||||
TokenBaseKind_LexError,
|
||||
TokenBaseKind_Comment,
|
||||
TokenBaseKind_Keyword,
|
||||
TokenBaseKind_Preprocessor,
|
||||
TokenBaseKind_Identifier,
|
||||
TokenBaseKind_Operator,
|
||||
TokenBaseKind_LiteralInteger,
|
||||
TokenBaseKind_LiteralFloat,
|
||||
TokenBaseKind_LiteralString,
|
||||
TokenBaseKind_ScopeOpen,
|
||||
TokenBaseKind_ScopeClose,
|
||||
TokenBaseKind_ParentheticalOpen,
|
||||
TokenBaseKind_ParentheticalClose,
|
||||
|
||||
TokenBaseKind_COUNT,
|
||||
};
|
||||
|
||||
typedef u16 Token_Base_Flag;
|
||||
enum{
|
||||
TokenBaseFlag_PreprocessorBody = 1,
|
||||
};
|
||||
|
||||
struct Token{
|
||||
i64 pos;
|
||||
i64 size;
|
||||
Token_Base_Kind kind;
|
||||
Token_Base_Flag flags;
|
||||
i16 sub_kind;
|
||||
u16 sub_flags;
|
||||
};
|
||||
|
||||
struct Token_Array{
|
||||
Token *tokens;
|
||||
i64 count;
|
||||
i64 max;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
// BOTTOM
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
/*
|
||||
4coder_language_cpp.cpp - C++ language parser.
|
||||
*/
|
||||
|
||||
// TOP
|
||||
|
||||
internal Token_Array
|
||||
lex_cpp_initial(Base_Allocator *allocator, String_Const_u8 contents){
|
||||
Token_Array result = {};
|
||||
result.tokens = base_array(allocator, Token, 2);
|
||||
result.count = 2;
|
||||
result.max = 2;
|
||||
result.tokens[0].pos = 0;
|
||||
result.tokens[0].size = contents.size;
|
||||
result.tokens[0].kind = TokenBaseKind_COUNT;
|
||||
result.tokens[0].sub_kind = 0;
|
||||
result.tokens[1].pos = contents.size;
|
||||
result.tokens[1].size = 0;
|
||||
result.tokens[1].kind = TokenBaseKind_EOF;
|
||||
return(result);
|
||||
}
|
||||
|
||||
// BOTTOM
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
4coder_language_cpp.h - Sets up the C++ language context.
|
||||
4coder_language_cpp.h - C++ language extension for the token types.
|
||||
*/
|
||||
|
||||
// TOP
|
||||
|
@ -7,171 +7,9 @@
|
|||
#if !defined(FCODER_LANGUAGE_CPP_H)
|
||||
#define FCODER_LANGUAGE_CPP_H
|
||||
|
||||
// TODO(allen): Organize this better!
|
||||
|
||||
internal Token_Array
|
||||
lex_cpp_initial(Base_Allocator *allocator, String_Const_u8 contents){
|
||||
Token_Array result = {};
|
||||
result.tokens = base_array(allocator, Token, 2);
|
||||
result.count = 2;
|
||||
result.max = 2;
|
||||
result.tokens[0].pos = 0;
|
||||
result.tokens[0].size = contents.size;
|
||||
result.tokens[0].kind = TokenBaseKind_COUNT;
|
||||
result.tokens[0].sub_kind = 0;
|
||||
result.tokens[1].pos = contents.size;
|
||||
result.tokens[1].size = 0;
|
||||
result.tokens[1].kind = TokenBaseKind_EOF;
|
||||
return(result);
|
||||
}
|
||||
|
||||
#if 0
|
||||
static Parse_Context_ID parse_context_language_cpp;
|
||||
|
||||
#define PSAT(s, t) {s, sizeof(s)-1, t}
|
||||
static void
|
||||
init_language_cpp(Application_Links *app){
|
||||
if (parse_context_language_cpp != 0) return;
|
||||
enum{
|
||||
|
||||
Parser_String_And_Type kw[] = {
|
||||
PSAT("true" , CPP_TOKEN_TRUE),
|
||||
PSAT("false" , CPP_TOKEN_FALSE),
|
||||
|
||||
PSAT("and" , CPP_TOKEN_AND),
|
||||
PSAT("and_eq" , CPP_TOKEN_ANDEQ),
|
||||
PSAT("bitand" , CPP_TOKEN_BIT_AND),
|
||||
PSAT("bitor" , CPP_TOKEN_BIT_OR),
|
||||
PSAT("or" , CPP_TOKEN_OR),
|
||||
PSAT("or_eq" , CPP_TOKEN_OREQ),
|
||||
PSAT("sizeof" , CPP_TOKEN_SIZEOF),
|
||||
PSAT("alignof" , CPP_TOKEN_ALIGNOF),
|
||||
PSAT("decltype" , CPP_TOKEN_DECLTYPE),
|
||||
PSAT("throw" , CPP_TOKEN_THROW),
|
||||
PSAT("new" , CPP_TOKEN_NEW),
|
||||
PSAT("delete" , CPP_TOKEN_DELETE),
|
||||
PSAT("xor" , CPP_TOKEN_BIT_XOR),
|
||||
PSAT("xor_eq" , CPP_TOKEN_XOREQ),
|
||||
PSAT("not" , CPP_TOKEN_NOT),
|
||||
PSAT("not_eq" , CPP_TOKEN_NOTEQ),
|
||||
PSAT("typeid" , CPP_TOKEN_TYPEID),
|
||||
PSAT("compl" , CPP_TOKEN_BIT_NOT),
|
||||
|
||||
PSAT("void" , CPP_TOKEN_VOID),
|
||||
PSAT("bool" , CPP_TOKEN_BOOL),
|
||||
PSAT("char" , CPP_TOKEN_CHAR),
|
||||
PSAT("int" , CPP_TOKEN_INT),
|
||||
PSAT("float" , CPP_TOKEN_FLOAT),
|
||||
PSAT("double" , CPP_TOKEN_DOUBLE),
|
||||
|
||||
PSAT("long" , CPP_TOKEN_LONG),
|
||||
PSAT("short" , CPP_TOKEN_SHORT),
|
||||
PSAT("unsigned" , CPP_TOKEN_UNSIGNED),
|
||||
PSAT("signed" , CPP_TOKEN_SIGNED),
|
||||
|
||||
PSAT("const" , CPP_TOKEN_CONST),
|
||||
PSAT("volatile" , CPP_TOKEN_VOLATILE),
|
||||
|
||||
PSAT("asm" , CPP_TOKEN_ASM),
|
||||
PSAT("break" , CPP_TOKEN_BREAK),
|
||||
PSAT("case" , CPP_TOKEN_CASE),
|
||||
PSAT("catch" , CPP_TOKEN_CATCH),
|
||||
PSAT("continue" , CPP_TOKEN_CONTINUE),
|
||||
PSAT("default" , CPP_TOKEN_DEFAULT),
|
||||
PSAT("do" , CPP_TOKEN_DO),
|
||||
PSAT("else" , CPP_TOKEN_ELSE),
|
||||
PSAT("for" , CPP_TOKEN_FOR),
|
||||
PSAT("goto" , CPP_TOKEN_GOTO),
|
||||
PSAT("if" , CPP_TOKEN_IF),
|
||||
PSAT("return" , CPP_TOKEN_RETURN),
|
||||
PSAT("switch" , CPP_TOKEN_SWITCH),
|
||||
PSAT("try" , CPP_TOKEN_TRY),
|
||||
PSAT("while" , CPP_TOKEN_WHILE),
|
||||
PSAT("static_assert" , CPP_TOKEN_STATIC_ASSERT),
|
||||
|
||||
PSAT("const_cast" , CPP_TOKEN_CONST_CAST),
|
||||
PSAT("dynamic_cast" , CPP_TOKEN_DYNAMIC_CAST),
|
||||
PSAT("reinterpret_cast" , CPP_TOKEN_REINTERPRET_CAST),
|
||||
PSAT("static_cast" , CPP_TOKEN_STATIC_CAST),
|
||||
|
||||
PSAT("class" , CPP_TOKEN_CLASS),
|
||||
PSAT("enum" , CPP_TOKEN_ENUM),
|
||||
PSAT("struct" , CPP_TOKEN_STRUCT),
|
||||
PSAT("typedef" , CPP_TOKEN_TYPEDEF),
|
||||
PSAT("union" , CPP_TOKEN_UNION),
|
||||
PSAT("template" , CPP_TOKEN_TEMPLATE),
|
||||
PSAT("typename" , CPP_TOKEN_TYPENAME),
|
||||
|
||||
PSAT("friend" , CPP_TOKEN_FRIEND),
|
||||
PSAT("namespace" , CPP_TOKEN_NAMESPACE),
|
||||
PSAT("private" , CPP_TOKEN_PRIVATE),
|
||||
PSAT("protected" , CPP_TOKEN_PROTECTED),
|
||||
PSAT("public" , CPP_TOKEN_PUBLIC),
|
||||
PSAT("using" , CPP_TOKEN_USING),
|
||||
|
||||
PSAT("extern" , CPP_TOKEN_EXTERN),
|
||||
PSAT("export" , CPP_TOKEN_EXPORT),
|
||||
PSAT("inline" , CPP_TOKEN_INLINE),
|
||||
PSAT("static" , CPP_TOKEN_STATIC),
|
||||
PSAT("internal", CPP_TOKEN_STATIC),
|
||||
PSAT("virtual" , CPP_TOKEN_VIRTUAL),
|
||||
|
||||
PSAT("alignas" , CPP_TOKEN_ALIGNAS),
|
||||
PSAT("explicit" , CPP_TOKEN_EXPLICIT),
|
||||
PSAT("noexcept" , CPP_TOKEN_NOEXCEPT),
|
||||
PSAT("nullptr" , CPP_TOKEN_NULLPTR),
|
||||
PSAT("operator" , CPP_TOKEN_OPERATOR),
|
||||
PSAT("register" , CPP_TOKEN_REGISTER),
|
||||
PSAT("this" , CPP_TOKEN_THIS),
|
||||
PSAT("thread_local" , CPP_TOKEN_THREAD_LOCAL),
|
||||
|
||||
#if defined(EXTRA_KEYWORDS)
|
||||
#include EXTRA_KEYWORDS
|
||||
#undef EXTRA_KEYWORDS
|
||||
#endif
|
||||
};
|
||||
|
||||
Parser_String_And_Type pp[] = {
|
||||
PSAT("include" , CPP_PP_INCLUDE ),
|
||||
PSAT("INCLUDE" , CPP_PP_INCLUDE ),
|
||||
PSAT("version" , CPP_PP_VERSION ),
|
||||
PSAT("VERSION" , CPP_PP_VERSION ),
|
||||
PSAT("ifndef" , CPP_PP_IFNDEF ),
|
||||
PSAT("IFNDEF" , CPP_PP_IFNDEF ),
|
||||
PSAT("define" , CPP_PP_DEFINE ),
|
||||
PSAT("DEFINE" , CPP_PP_DEFINE ),
|
||||
PSAT("import" , CPP_PP_IMPORT ),
|
||||
PSAT("IMPORT" , CPP_PP_IMPORT ),
|
||||
PSAT("pragma" , CPP_PP_PRAGMA ),
|
||||
PSAT("PRAGMA" , CPP_PP_PRAGMA ),
|
||||
PSAT("undef" , CPP_PP_UNDEF ),
|
||||
PSAT("UNDEF" , CPP_PP_UNDEF ),
|
||||
PSAT("endif" , CPP_PP_ENDIF ),
|
||||
PSAT("ENDIF" , CPP_PP_ENDIF ),
|
||||
PSAT("error" , CPP_PP_ERROR ),
|
||||
PSAT("ERROR" , CPP_PP_ERROR ),
|
||||
PSAT("ifdef" , CPP_PP_IFDEF ),
|
||||
PSAT("IFDEF" , CPP_PP_IFDEF ),
|
||||
PSAT("using" , CPP_PP_USING ),
|
||||
PSAT("USING" , CPP_PP_USING ),
|
||||
PSAT("else" , CPP_PP_ELSE ),
|
||||
PSAT("ELSE" , CPP_PP_ELSE ),
|
||||
PSAT("elif" , CPP_PP_ELIF ),
|
||||
PSAT("ELIF" , CPP_PP_ELIF ),
|
||||
PSAT("line" , CPP_PP_LINE ),
|
||||
PSAT("LINE" , CPP_PP_LINE ),
|
||||
PSAT("if" , CPP_PP_IF ),
|
||||
PSAT("IF" , CPP_PP_IF ),
|
||||
|
||||
#if defined(EXTRA_PREPROPS)
|
||||
#include EXTRA_PREPROPS
|
||||
#undef EXTRA_PREPROPS
|
||||
#endif
|
||||
};
|
||||
|
||||
parse_context_language_cpp = create_parse_context(app, kw, ArrayCount(kw), pp, ArrayCount(pp));
|
||||
}
|
||||
#undef PSAT
|
||||
#endif
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -472,11 +472,6 @@ fsm_generator(Arena *arena, char *cdir){
|
|||
build_and_run(arena, cdir, "meta/4ed_fsm_table_generator.cpp", "fsmgen", OPTS | DEBUG_INFO);
|
||||
}
|
||||
|
||||
internal void
|
||||
metagen(Arena *arena, char *cdir){
|
||||
build_and_run(arena, cdir, "meta/4ed_metagen.cpp", "metagen", OPTS | DEBUG_INFO);
|
||||
}
|
||||
|
||||
internal void
|
||||
string_build(Arena *arena, char *cdir){
|
||||
char *dir = fm_str(arena, BUILD_DIR);
|
||||
|
@ -580,7 +575,6 @@ build_main(Arena *arena, char *cdir, b32 update_local_theme, u32 flags, u32 arch
|
|||
internal void
|
||||
standard_build(Arena *arena, char *cdir, u32 flags, u32 arch){
|
||||
//fsm_generator(arena, cdir);
|
||||
metagen(arena, cdir);
|
||||
|
||||
//do_buildsuper(arena, cdir, fm_str(arena, custom_files[Custom_Default]), arch);
|
||||
do_buildsuper(arena, cdir, fm_str(arena, custom_files[Custom_Experiments]), arch);
|
||||
|
@ -609,7 +603,6 @@ internal void
|
|||
package(Arena *arena, char *cdir){
|
||||
// NOTE(allen): meta
|
||||
fsm_generator(arena, cdir);
|
||||
metagen(arena, cdir);
|
||||
|
||||
char *build_dir = fm_str(arena, BUILD_DIR);
|
||||
char *pack_dir = fm_str(arena, PACK_DIR);
|
||||
|
|
File diff suppressed because it is too large
Load Diff
1111
meta/4ed_metagen.cpp
1111
meta/4ed_metagen.cpp
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue