mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Added new style named arguments.
This commit is contained in:
@@ -113,6 +113,19 @@ INLINE bool expect(ParseContext *c, TokenType token_type)
|
||||
return false;
|
||||
}
|
||||
|
||||
INLINE bool token_is_param_name(TokenType token_type)
|
||||
{
|
||||
switch (token_type)
|
||||
{
|
||||
case TOKEN_CT_IDENT:
|
||||
case TOKEN_IDENT:
|
||||
case TOKEN_HASH_IDENT:
|
||||
case TOKEN_CT_TYPE_IDENT:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
INLINE bool token_is_some_ident(TokenType token_type)
|
||||
{
|
||||
switch (token_type)
|
||||
|
||||
Reference in New Issue
Block a user