Skip to content

Commit

Permalink
Cleaning up code
Browse files Browse the repository at this point in the history
  • Loading branch information
JJtan2002 committed Mar 15, 2024
1 parent 400ceb2 commit f62ca28
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
14 changes: 5 additions & 9 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,11 @@
/* Use as a command line script */
/* npm run start:dev -- test.py */

import { Tokenizer } from "./tokenizer";
import { Parser } from "./parser";
import { Translator } from "./translator";
import { Program } from "estree";
import { Resolver } from "./resolver";
import {Tokenizer} from "./tokenizer";
import {Parser} from "./parser";
import {Translator} from "./translator";
import {Program} from "estree";
import {Resolver} from "./resolver";

export function parsePythonToEstreeAst(code: string,
variant: number = 1,
Expand All @@ -152,10 +152,6 @@ export function parsePythonToEstreeAst(code: string,

export * from './errors';

const text = `
"\hi"
`;
console.dir(parsePythonToEstreeAst(text, 1, false));
// import {ParserErrors, ResolverErrors, TokenizerErrors} from "./errors";
// import fs from "fs";
// const BaseParserError = ParserErrors.BaseParserError;
Expand Down
1 change: 0 additions & 1 deletion src/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export enum TokenType {
NAME,
NUMBER,
STRING,
TEMPLATELITERAL,
NEWLINE,
INDENT,
DEDENT,
Expand Down

0 comments on commit f62ca28

Please sign in to comment.