started using a comma as a parameter/argument separator.

changed to use & as a string concatenation method in the string class.
added some code to support variadic arguments
This commit is contained in:
hyunghwan.chung
2016-12-13 15:18:19 +00:00
parent f88027af32
commit bcaf4e5e1e
15 changed files with 118 additions and 36 deletions

View File

@ -347,6 +347,7 @@ struct stix_iotok_t
STIX_IOTOK_ARPAREN, /* #( */
STIX_IOTOK_BAPAREN, /* #[ */
STIX_IOTOK_PERIOD,
STIX_IOTOK_COMMA,
STIX_IOTOK_SEMICOLON
} type;
@ -377,6 +378,7 @@ enum stix_synerrnum_t
STIX_SYNERR_RPAREN, /* ) expected */
STIX_SYNERR_RBRACK, /* ] expected */
STIX_SYNERR_PERIOD, /* . expected */
STIX_SYNERR_COMMA, /* , expected */
STIX_SYNERR_VBAR, /* | expected */
STIX_SYNERR_GT, /* > expected */
STIX_SYNERR_ASSIGN, /* := expected */
@ -541,6 +543,9 @@ struct stix_compiler_t
stix_oow_t name_capa;
stix_ioloc_t name_loc;
/* is the unary method followed by parameter list? */
int parunary;
/* single string containing a space separated list of temporaries */
stix_oocs_t tmprs;
stix_oow_t tmprs_capa;