started working on parser

This commit is contained in:
Lauchmelder 2021-11-27 20:54:04 +01:00
parent 2558a548b3
commit d01cf5790b
5 changed files with 134 additions and 30 deletions

18
src/parser/instruction.ts Normal file
View 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 = [];
}
}