Added most of the basic stuff
This commit is contained in:
parent
c380ac53bd
commit
e0b6c55c0f
11 changed files with 251 additions and 0 deletions
6
BeefProj.toml
Normal file
6
BeefProj.toml
Normal file
|
@ -0,0 +1,6 @@
|
|||
FileVersion = 1
|
||||
|
||||
[Project]
|
||||
Name = "CodeDatatypes"
|
||||
TargetType = "BeefLib"
|
||||
StartupObject = "CodeDatatypes.Program"
|
5
BeefSpace.toml
Normal file
5
BeefSpace.toml
Normal file
|
@ -0,0 +1,5 @@
|
|||
FileVersion = 1
|
||||
Projects = {CodeDatatypes = {Path = "."}}
|
||||
|
||||
[Workspace]
|
||||
StartupProject = "CodeDatatypes"
|
20
src/cdAttribute.bf
Normal file
20
src/cdAttribute.bf
Normal file
|
@ -0,0 +1,20 @@
|
|||
namespace CodeDatatypes;
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
|
||||
class cdAttribute
|
||||
{
|
||||
public String Name = new .("") ~ delete _;
|
||||
|
||||
public List<cdAttributeParameters> Parameters = new .() ~ DeleteContainerAndItems!(_);
|
||||
|
||||
public class cdAttributeParameters
|
||||
{
|
||||
public String Value = new .("") ~ delete _;
|
||||
|
||||
public bool Explicit = false;
|
||||
|
||||
public String Name = new .("") ~ delete _;
|
||||
}
|
||||
}
|
19
src/cdClass.bf
Normal file
19
src/cdClass.bf
Normal file
|
@ -0,0 +1,19 @@
|
|||
namespace CodeDatatypes;
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
|
||||
class cdClass
|
||||
{
|
||||
public String Name = new .("") ~ delete _;
|
||||
|
||||
public cdComment Comment = new .() ~ delete _;
|
||||
|
||||
public List<cdFunction> Functions = new .() ~ DeleteContainerAndItems!(_);
|
||||
|
||||
public List<cdClass> Classes = new .() ~ DeleteContainerAndItems!(_);
|
||||
|
||||
public List<cdStruct> Structs = new .() ~ DeleteContainerAndItems!(_);
|
||||
|
||||
public List<cdField> Fields = new .() ~ DeleteContainerAndItems!(_);
|
||||
}
|
26
src/cdComment.bf
Normal file
26
src/cdComment.bf
Normal file
|
@ -0,0 +1,26 @@
|
|||
namespace CodeDatatypes;
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
|
||||
class cdComment
|
||||
{
|
||||
//The main content of the comment
|
||||
public String Value = new .("") ~ delete _;
|
||||
|
||||
//The @brief portion of a comment (if it exits)
|
||||
public String Brief = new .("") ~ delete _;
|
||||
|
||||
public List<cdCommentParameters> Params = new .() ~ DeleteContainerAndItems!(_);
|
||||
|
||||
/*
|
||||
used to give info on specific method parameters
|
||||
@param [Name] [Value]
|
||||
*/
|
||||
public class cdCommentParameters
|
||||
{
|
||||
public String Name = new .("") ~ delete _;
|
||||
|
||||
public String Value = new .("") ~ delete _;
|
||||
}
|
||||
}
|
24
src/cdEnum.bf
Normal file
24
src/cdEnum.bf
Normal file
|
@ -0,0 +1,24 @@
|
|||
namespace CodeDatatypes;
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
|
||||
class cdEnum
|
||||
{
|
||||
public String Name = new .("") ~ delete _;
|
||||
|
||||
public cdComment Comment = new .() ~ delete _;
|
||||
|
||||
public List<cdAttribute> Attributes = new .() ~ DeleteContainerAndItems!(_);
|
||||
|
||||
public List<cdEnumValue> Values = new .() ~ DeleteContainerAndItems!(_);
|
||||
|
||||
public class cdEnumValue
|
||||
{
|
||||
public String Name = new .("") ~ delete _;
|
||||
|
||||
public cdComment Comment = new .() ~ delete _;
|
||||
|
||||
public String Value = new .("") ~ delete _;
|
||||
}
|
||||
}
|
20
src/cdField.bf
Normal file
20
src/cdField.bf
Normal file
|
@ -0,0 +1,20 @@
|
|||
namespace CodeDatatypes;
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
|
||||
class cdField
|
||||
{
|
||||
public String Name = new .("") ~ delete _;
|
||||
|
||||
public String Type = new .("") ~ delete _;
|
||||
|
||||
public String Assignment = new .("") ~ delete _;// = [Value]
|
||||
|
||||
public String Deletion = new .("") ~ delete _;// ~ [Value]
|
||||
|
||||
public cdComment Comment = new .() ~ delete _;
|
||||
|
||||
public List<cdAttribute> Attributes = new .() ~ DeleteContainerAndItems!(_);
|
||||
|
||||
}
|
31
src/cdFunction.bf
Normal file
31
src/cdFunction.bf
Normal file
|
@ -0,0 +1,31 @@
|
|||
namespace CodeDatatypes;
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
|
||||
class cdFunction
|
||||
{
|
||||
public String Name = new .("") ~ delete _;
|
||||
|
||||
public bool Public = true;
|
||||
|
||||
public bool Static = true;
|
||||
|
||||
public cdComment Comment = new .() ~ delete _;
|
||||
|
||||
public List<cdAttribute> Attributes = new .() ~ DeleteContainerAndItems!(_);
|
||||
|
||||
public String Return = new .("") ~ delete _;
|
||||
|
||||
public List<cdFunctionParameter> Parameters = new .() ~ DeleteContainerAndItems!(_);
|
||||
|
||||
|
||||
public class cdFunctionParameter
|
||||
{
|
||||
public String Type = new .("") ~ delete _;
|
||||
|
||||
public String Name = new .("") ~ delete _;
|
||||
|
||||
public String Default = new .("") ~ delete _;
|
||||
}
|
||||
}
|
18
src/cdNamespace.bf
Normal file
18
src/cdNamespace.bf
Normal file
|
@ -0,0 +1,18 @@
|
|||
namespace CodeDatatypes;
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
|
||||
class cdNamespace
|
||||
{
|
||||
public String Name = new .("") ~ delete _;
|
||||
|
||||
//Static functions
|
||||
public List<cdFunction> Functions = new .() ~ DeleteContainerAndItems!(_);
|
||||
|
||||
public List<cdClass> Classes = new .() ~ DeleteContainerAndItems!(_);
|
||||
|
||||
public List<cdStruct> Structs = new .() ~ DeleteContainerAndItems!(_);
|
||||
|
||||
public List<cdField> Fields = new .() ~ DeleteContainerAndItems!(_);
|
||||
}
|
19
src/cdStruct.bf
Normal file
19
src/cdStruct.bf
Normal file
|
@ -0,0 +1,19 @@
|
|||
namespace CodeDatatypes;
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
|
||||
class cdStruct
|
||||
{
|
||||
public String Name = new .("") ~ delete _;
|
||||
|
||||
public cdComment Comment = new .() ~ delete _;
|
||||
|
||||
public List<cdFunction> Functions = new .() ~ DeleteContainerAndItems!(_);
|
||||
|
||||
public List<cdClass> Classes = new .() ~ DeleteContainerAndItems!(_);
|
||||
|
||||
public List<cdStruct> Structs = new .() ~ DeleteContainerAndItems!(_);
|
||||
|
||||
public List<cdField> Fields = new .() ~ DeleteContainerAndItems!(_);
|
||||
}
|
63
src/model.bf
Normal file
63
src/model.bf
Normal file
|
@ -0,0 +1,63 @@
|
|||
/*
|
||||
A brief overview of the datastructures
|
||||
|
||||
comment:
|
||||
value
|
||||
brief
|
||||
params[]
|
||||
name
|
||||
value
|
||||
|
||||
attributes;
|
||||
name
|
||||
parameters[]
|
||||
value
|
||||
explicit
|
||||
name?
|
||||
|
||||
field:
|
||||
name
|
||||
type
|
||||
asignment
|
||||
deletion
|
||||
<comment?
|
||||
<attributes[]
|
||||
|
||||
enum:
|
||||
name
|
||||
<comment?
|
||||
values[]
|
||||
name
|
||||
<comment?
|
||||
value?
|
||||
<attributes[]
|
||||
|
||||
function:
|
||||
name
|
||||
visibility
|
||||
static
|
||||
<comment?
|
||||
<attributes[]
|
||||
return value
|
||||
inputs[]
|
||||
type
|
||||
name
|
||||
default?
|
||||
|
||||
class:
|
||||
name
|
||||
<comment?
|
||||
<functions[]
|
||||
<classes[]
|
||||
<structs[]
|
||||
<fields[]
|
||||
|
||||
struct:
|
||||
name
|
||||
<comment?
|
||||
<functions[]
|
||||
<classes[]
|
||||
<structs[]
|
||||
<fields[]
|
||||
|
||||
*/
|
Loading…
Add table
Reference in a new issue