import { CONTRACT } from '../typings/contractTypes'; import { PRE_TOKEN, TOKEN } from '../typings/syntaxTypes'; /** Translate an array of pre tokens to an array of tokens. First phase of parsing. * @param tokens Array of pre-tokens * @returns Array of TOKENS. Recursive on Arr, CodeCave and CodeDomain types * @throws {Error} at any mistakes */ export default function parser(Program: CONTRACT, preTokens: PRE_TOKEN[]): TOKEN[];