Add 'ParseReturnValuesOnly' to the lua prototype parser.

This commit is contained in:
2026-03-04 17:50:18 -05:00
parent 4dabb98d05
commit 78f0f318c5
4 changed files with 64 additions and 31 deletions

View File

@@ -86,14 +86,29 @@ private:
//
void Empty();
// Parse a function prototype.
// Parse comma-separated "type name" pairs into ReturnValues.
//
void Parse(const FString &proto);
void ParseReturnValues();
// Parse a full function prototype (assumes already tokenized).
//
void Parse();
// Tokenize the input string.
//
bool Tokenize(const FString &str);
public:
// Construct with a prototype.
// Parse a full function prototype.
//
FlxParsedProto(const FString &str) { Parse(str); }
static FlxParsedProto ParsePrototype(const FString &str);
// Parse just a comma-separated list of "type name" pairs.
//
static FlxParsedProto ParseReturnValuesOnly(const FString &str);
private:
FlxParsedProto() { Empty(); }
};
////////////////////////////////////////////////////////////