Write parser for temp profile language. Not yet tested.

This commit is contained in:
2021-03-19 16:58:14 +01:00
parent e3e4a6d926
commit 1b4eba1871
2 changed files with 90 additions and 14 deletions

View File

@@ -42,21 +42,16 @@ enum pl_ret_val {
PL_RET_SCRIPT_ERR,
};
struct pl_error {
const char *errormsg;
uint32_t line;
uint32_t column;
};
#define PROFILE_LANG_MAX_NUM_ARGS (8)
struct pl_command {
enum pl_command_type cmd;
float params[8];
float params[PROFILE_LANG_MAX_NUM_ARGS];
};
enum pl_ret_val temp_profile_parse_from_file(const char *filename,
struct pl_command *cmd_list,
uint32_t cmd_list_length,
struct pl_error *error,
uint32_t *cmds_parsed);
#endif /* __CONFIG_PARSER_TEMP_PROFILE_PARSER_H__ */