mirror of
https://github.com/Ed94/gencpp.git
synced 2024-12-22 15:54:45 -08:00
Base case for friend parse working.
This commit is contained in:
parent
472189a322
commit
855ba5a965
@ -483,7 +483,7 @@ namespace gen
|
||||
break;
|
||||
|
||||
case Friend:
|
||||
result.append_fmt( "friend %s", entry( 0 )->to_string() );
|
||||
result.append_fmt( "friend %s;", entry( 0 )->to_string() );
|
||||
break;
|
||||
|
||||
case Function:
|
||||
@ -4140,6 +4140,7 @@ namespace gen
|
||||
if ( expr )
|
||||
member->add_entry( expr );
|
||||
}
|
||||
}
|
||||
|
||||
if ( member == Code::Invalid )
|
||||
{
|
||||
@ -4150,9 +4151,6 @@ namespace gen
|
||||
result->add_entry( member );
|
||||
}
|
||||
|
||||
eat( currtok.Type );
|
||||
}
|
||||
|
||||
eat( TokType::BraceCurly_Close );
|
||||
return result;
|
||||
}
|
||||
@ -4577,6 +4575,7 @@ namespace gen
|
||||
if ( expr )
|
||||
member->add_entry( expr );
|
||||
}
|
||||
}
|
||||
|
||||
if ( member == Code::Invalid )
|
||||
{
|
||||
@ -4587,9 +4586,6 @@ namespace gen
|
||||
result->add_entry( member );
|
||||
}
|
||||
|
||||
eat( currtok.Type );
|
||||
}
|
||||
|
||||
eat( TokType::BraceCurly_Close );
|
||||
return result;
|
||||
}
|
||||
|
@ -88,7 +88,6 @@ u32 gen_sanity()
|
||||
gen_sanity_file.print_fmt("\n");
|
||||
|
||||
// Friend
|
||||
if (0)
|
||||
{
|
||||
Code fwd = parse_class( code(
|
||||
class TestFriendClass;
|
||||
|
Loading…
Reference in New Issue
Block a user