2018-05-09 07:10:07 +00:00
|
|
|
/*
|
|
|
|
4coder_scope_commands.cpp - A set of commands and helpers relevant for scope level navigation and editing.
|
|
|
|
*/
|
|
|
|
|
|
|
|
// TOP
|
|
|
|
|
|
|
|
#if !defined(FCODER_SCOPE_COMMANDS_H)
|
|
|
|
#define FCODER_SCOPE_COMMANDS_H
|
|
|
|
|
|
|
|
enum{
|
2018-09-30 12:14:47 +00:00
|
|
|
FindScope_Parent = 1,
|
|
|
|
FindScope_NextSibling = 2,
|
|
|
|
FindScope_EndOfToken = 4,
|
|
|
|
FindScope_Brace = 8,
|
|
|
|
FindScope_Paren = 16,
|
2018-05-09 07:10:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct Statement_Parser{
|
2019-02-01 22:50:33 +00:00
|
|
|
Token_Iterator token_iterator;
|
2019-04-04 08:25:16 +00:00
|
|
|
Buffer_ID buffer;
|
2018-05-09 07:10:07 +00:00
|
|
|
};
|
|
|
|
|
2019-02-26 23:17:53 +00:00
|
|
|
typedef i32 Find_Scope_Token_Type;
|
2018-09-30 12:14:47 +00:00
|
|
|
enum{
|
|
|
|
FindScopeTokenType_None = 0,
|
|
|
|
FindScopeTokenType_Open = 1,
|
|
|
|
FindScopeTokenType_Close = 2,
|
|
|
|
};
|
|
|
|
|
2018-05-09 07:10:07 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
// BOTTOM
|
|
|
|
|