2023-01-30 07:48:27 -05:00
|
|
|
// Copyright 2023 xensik. All rights reserved.
|
|
|
|
//
|
|
|
|
// Use of this source code is governed by a GNU GPLv3 license
|
|
|
|
// that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
namespace xsk::gsc
|
|
|
|
{
|
|
|
|
|
|
|
|
struct define
|
|
|
|
{
|
2023-02-17 10:44:38 -05:00
|
|
|
enum kind : u8 { PLAIN, BUILTIN, OBJECT, FUNCTION };
|
2023-01-30 07:48:27 -05:00
|
|
|
|
|
|
|
kind type;
|
2023-02-17 10:44:38 -05:00
|
|
|
// bool vararg;
|
2023-01-30 07:48:27 -05:00
|
|
|
std::vector<token> args;
|
|
|
|
std::vector<token> exp;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace xsk::gsc
|