35 lines
617 B
C
35 lines
617 B
C
/*
|
|
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{
|
|
FindScope_Parent = 1,
|
|
FindScope_NextSibling = 2,
|
|
FindScope_EndOfToken = 4,
|
|
FindScope_Brace = 8,
|
|
FindScope_Paren = 16,
|
|
};
|
|
|
|
struct Statement_Parser{
|
|
Stream_Tokens stream;
|
|
int32_t token_index;
|
|
Buffer_Summary *buffer;
|
|
};
|
|
|
|
typedef int32_t Find_Scope_Token_Type;
|
|
enum{
|
|
FindScopeTokenType_None = 0,
|
|
FindScopeTokenType_Open = 1,
|
|
FindScopeTokenType_Close = 2,
|
|
};
|
|
|
|
#endif
|
|
|
|
// BOTTOM
|
|
|