mirror of
https://github.com/Ed94/gencpp.git
synced 2025-06-15 11:11:46 -07:00
Lexer improvement prep, segmentation of lexer and parser.
This commit is contained in:
@ -869,16 +869,6 @@ void CodeExtern::set_global()
|
||||
rcast( AST*, ast )->Parent = Code::Global.ast;
|
||||
}
|
||||
|
||||
String CodeExtern::to_string()
|
||||
{
|
||||
if ( ast == nullptr )
|
||||
{
|
||||
log_failure( "Code::to_string: Cannot convert code to string, AST is null!" );
|
||||
return { nullptr };
|
||||
}
|
||||
return rcast( AST*, ast )->to_string();
|
||||
}
|
||||
|
||||
CodeExtern& CodeExtern::operator=( Code other )
|
||||
{
|
||||
if ( other.ast && other->Parent )
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
// This file was generated automatially by gencpp's bootstrap.cpp (See: https://github.com/Ed94/gencpp)
|
||||
|
||||
namespace Parser
|
||||
namespace parser
|
||||
{
|
||||
namespace ETokType
|
||||
{
|
||||
@ -234,4 +234,4 @@ namespace Parser
|
||||
|
||||
using TokType = ETokType::Type;
|
||||
|
||||
} // namespace Parser
|
||||
} // namespace parser
|
||||
|
Reference in New Issue
Block a user