import { UOP, OP } from "../../../tokenizer/consts/ops";
import fork from "./fork";
const ops = [
"+", "*", "**", "-", "^",
"&", "|", "/", "%", "@\""
]; // TODO: make dynamic
const parse = (str) => {
let tokens = [];
for(let i = 0; i < str.length; i++){
if(!ops.some(x => x[0] === str[i])) continue;
let build = "";
while(ops.some(x => x.indexOf(build + str[i]) >= 0)){
build += str[i++];
}
i--;
tokens.push(build);
}