Use comptime for fully declarative LV2 and Custom commands #14
1 changed files with 1 additions and 10 deletions
11
src/lang.zig
11
src/lang.zig
|
@ -3,11 +3,7 @@ const std = @import("std");
|
|||
const plugin = @import("plugin.zig");
|
||||
const custom = @import("custom.zig");
|
||||
|
||||
pub const ParseError = error{
|
||||
OutOfMemory,
|
||||
ArgRequired,
|
||||
ParseFail,
|
||||
};
|
||||
pub const ParseError = error{ParseFail};
|
||||
|
||||
pub const CommandType = enum {
|
||||
/// "LV2 Commands" are commands that receive split, index, and then receive
|
||||
|
@ -481,9 +477,6 @@ pub const Command = struct {
|
|||
};
|
||||
|
||||
pub const CommandList = std.ArrayList(*Command);
|
||||
pub const ArgList = std.ArrayList([]const u8);
|
||||
|
||||
pub const KeywordMap = std.StringHashMap(CommandType);
|
||||
|
||||
/// A parser.
|
||||
pub const Lang = struct {
|
||||
|
@ -653,8 +646,6 @@ pub const Lang = struct {
|
|||
self.doError("Unknown command '{}' ({})", .{ command_string, command_string.len });
|
||||
continue;
|
||||
}
|
||||
|
||||
// try cmds.append(cmd);
|
||||
}
|
||||
|
||||
if (self.has_error) return ParseError.ParseFail;
|
||||
|
|
Loading…
Reference in a new issue