started working on parser
This commit is contained in:
parent
2558a548b3
commit
d01cf5790b
5 changed files with 134 additions and 30 deletions
18
src/parser/instruction.ts
Normal file
18
src/parser/instruction.ts
Normal file
|
@ -0,0 +1,18 @@
|
|||
enum InstructionType
|
||||
{
|
||||
Point,
|
||||
Line,
|
||||
Circle
|
||||
}
|
||||
|
||||
class Instruction
|
||||
{
|
||||
public fn: InstructionType;
|
||||
public params :Parameter[];
|
||||
|
||||
constructor(type: InstructionType)
|
||||
{
|
||||
this.fn = type;
|
||||
this.params = [];
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue