Skip to content

Commit

Permalink
Parser: move parse fns to separate file
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanjermakov committed Jun 10, 2023
1 parent 441ccaf commit 8cd00c8
Show file tree
Hide file tree
Showing 5 changed files with 571 additions and 568 deletions.
1 change: 0 additions & 1 deletion data/features.no
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ fn foo(): Unit {
// constructor
// TODO: floats
// let vec = Vec2(x: 2., y: 4.)
let vec = Vec2(x: 2, y: 4)

// field accessor
vec.x
Expand Down
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { tokenize } from './lexer/lexer'
import { existsSync, readFileSync } from 'fs'
import { join, resolve } from 'path'
import { compactNode, parseModule, Parser } from './parser/parser'
import { compactNode, Parser } from './parser/parser'
import { prettyLexerError, prettySourceMessage, prettySyntaxError } from './error'
import { parseModule } from './parser/parser-fns'


const version = JSON.parse(readFileSync(join(__dirname, '..', 'package.json')).toString()).version
Expand Down
Loading

0 comments on commit 8cd00c8

Please sign in to comment.