mirror of
https://github.com/Ed94/gencpp.git
synced 2024-12-22 07:44:45 -08:00
removed reference type usage in components/lexer.cpp, looking into resolving 'using namespace' usage
This commit is contained in:
parent
f28ae57f16
commit
63ebd0d094
@ -11,16 +11,15 @@
|
||||
CodeClass parse_class( StrC def )
|
||||
{
|
||||
check_parse_args( def );
|
||||
using namespace parser;
|
||||
|
||||
TokArray toks = lex( def );
|
||||
parser::TokArray toks = parser::lex( def );
|
||||
if ( toks.Arr == nullptr )
|
||||
return InvalidCode;
|
||||
|
||||
Context.Tokens = toks;
|
||||
parser::Context.Tokens = toks;
|
||||
push_scope();
|
||||
CodeClass result = (CodeClass) parse_class_struct( TokType::Decl_Class );
|
||||
Context.pop();
|
||||
CodeClass result = (CodeClass) parser::parse_class_struct( parser::TokType::Decl_Class );
|
||||
parser::Context.pop();
|
||||
return result;
|
||||
}
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -166,7 +166,7 @@ if ( def.Ptr == nullptr ) \
|
||||
return InvalidCode; \
|
||||
}
|
||||
|
||||
# define currtok_noskip (* current( & Context.Tokens, dont_skip_formatting ))
|
||||
# define currtok_noskip (* parser::current( & parser::Context.Tokens, parser::dont_skip_formatting ))
|
||||
# define currtok (* current( & Context.Tokens, skip_formatting ))
|
||||
# define prevtok (* previous( Context.Tokens, dont_skip_formatting))
|
||||
# define nexttok (* next( Context.Tokens, skip_formatting ))
|
||||
@ -183,8 +183,8 @@ if ( def.Ptr == nullptr ) \
|
||||
# define check( Type_ ) ( left && currtok.Type == Type_ )
|
||||
|
||||
# define push_scope() \
|
||||
StackNode scope { nullptr, currtok_noskip, NullToken, txt( __func__ ) }; \
|
||||
Context.push( & scope )
|
||||
parser::StackNode scope { nullptr, currtok_noskip, parser::NullToken, txt( __func__ ) }; \
|
||||
parser::Context.push( & scope )
|
||||
|
||||
#pragma endregion Helper Macros
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user