frontend: remove references to old mie api
This commit is contained in:
@@ -1,22 +1,24 @@
|
||||
#include <fx/cmd.h>
|
||||
#include "cmd.h"
|
||||
#include <ivy/lang/lex.h>
|
||||
#include <ivy/lang/internal.h>
|
||||
|
||||
#include <fx/cmd.h>
|
||||
#include <fx/term.h>
|
||||
#include <ivy/lang/internal.h>
|
||||
#include <ivy/lang/lex.h>
|
||||
|
||||
enum {
|
||||
OPT_PRINT_SYMBOLS = 0x1000,
|
||||
OPT_PRINT_KEYWORDS,
|
||||
};
|
||||
|
||||
static int internal(const fx_command *cmd, const fx_arglist *args, const fx_array *_)
|
||||
static int internal(
|
||||
const fx_command *cmd, const fx_arglist *args, const fx_array *_)
|
||||
{
|
||||
struct ivy_lexer *lex;
|
||||
enum ivy_status status = ivy_lexer_create(&lex);
|
||||
|
||||
|
||||
if (status != IVY_OK) {
|
||||
fx_err("failed to initialise lexer (error %s)",
|
||||
ivy_status_to_string(status));
|
||||
ivy_status_to_string(status));
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -33,7 +35,7 @@ static int internal(const fx_command *cmd, const fx_arglist *args, const fx_arra
|
||||
return 0;
|
||||
}
|
||||
|
||||
B_COMMAND(CMD_INTERNAL, CMD_ROOT)
|
||||
FX_COMMAND(CMD_INTERNAL, CMD_ROOT)
|
||||
{
|
||||
FX_COMMAND_NAME("internal");
|
||||
FX_COMMAND_SHORT_NAME('X');
|
||||
@@ -53,7 +55,8 @@ B_COMMAND(CMD_INTERNAL, CMD_ROOT)
|
||||
FX_OPTION_LONG_NAME("print-keywords");
|
||||
FX_OPTION_SHORT_NAME('k');
|
||||
FX_OPTION_DESC(
|
||||
"print the keyword dictionary used by the language lexer.");
|
||||
"print the keyword dictionary used by the language "
|
||||
"lexer.");
|
||||
}
|
||||
|
||||
FX_COMMAND_HELP_OPTION();
|
||||
|
||||
Reference in New Issue
Block a user