Skip to content

Commit

Permalink
refactor(parse): update imports
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Sep 6, 2020
1 parent a35efa8 commit b600b00
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions packages/parse/src/presets/bits.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { oneOf } from "../prims/one-of";
import { xfInt } from "../xform/number";
import { repeat } from "../combinators/repeat";
import { xform } from "../combinators/xform";
import { oneOf } from "../prims/one-of";
import { xfInt } from "../xform/number";

export const BIT = oneOf("01");

Expand Down
10 changes: 5 additions & 5 deletions packages/parse/src/presets/escape.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { always } from "../prims/always";
import { litD } from "../prims/lit";
import type { IObjectOf } from "@thi.ng/api";
import { repeat } from "../combinators/repeat";
import { seq } from "../combinators/seq";
import { xform } from "../combinators/xform";
import { repeat } from "../combinators/repeat";
import { HEX_DIGIT } from "./hex";
import { always } from "../prims/always";
import { litD } from "../prims/lit";
import { stringD } from "../prims/string";
import { xfInt } from "../xform/number";
import { IObjectOf } from "@thi.ng/api";
import { HEX_DIGIT } from "./hex";

const ESC_VALUES: IObjectOf<string> = {
0: "\0",
Expand Down
4 changes: 2 additions & 2 deletions packages/parse/src/xform/nest.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ScopeTransform, Parser } from "../api";
import { Parser, ScopeTransform } from "../api";
import { xform } from "../combinators/xform";
import { defContext } from "../context";
import { xfJoin } from "./join";
import { xform } from "../combinators/xform";

/**
* HOF scope transform which applies given parser to result of given scope's
Expand Down
2 changes: 1 addition & 1 deletion packages/parse/test/rpn.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Fn2 } from "@thi.ng/api";
import type { Fn2 } from "@thi.ng/api";
import * as assert from "assert";
import { alt, defContext, FLOAT, oneOf, WS0, xform, zeroOrMore } from "../src";

Expand Down

0 comments on commit b600b00

Please sign in to comment.