Skip to content

Commit

Permalink
Merge pull request #4 from nparashar150/staging
Browse files Browse the repository at this point in the history
[Prod] - Struct: split lexer to line by line and inline
  • Loading branch information
nparashar150 authored Sep 8, 2024
2 parents f1ced88 + d856fd1 commit fe1f341
Show file tree
Hide file tree
Showing 5 changed files with 457 additions and 446 deletions.
8 changes: 4 additions & 4 deletions index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { lexer } from "./lexer";
import { lineByLineLexer } from "./lexer";
import type { Token } from "./configs";
import { TokenType, MAX_NESTING_DEPTH } from "./configs";

export const generateASTFromMarkdown = (input: string) => {
const tokens = lexer(input);
const markToAST = (input: string) => {
const tokens = lineByLineLexer(input);
return tokens;
};

export type { Token };
export { TokenType, MAX_NESTING_DEPTH };
export { TokenType, markToAST, MAX_NESTING_DEPTH };

Loading

0 comments on commit fe1f341

Please sign in to comment.