Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Expose API to seed the initial line number of the parser. #65

Merged
merged 3 commits into from
Jul 22, 2020

Conversation

IwanKaramazow
Copy link
Contributor

@IwanKaramazow IwanKaramazow commented Jul 22, 2020

Instead of exposing a surface syntax to change the line number of the scanner at parse time, we can expose a programmatic api for power users to seed the line number

let parser = Napkin_parser.make ~line:2 mySourceCode myFilename

@IwanKaramazow IwanKaramazow merged commit a612f22 into master Jul 22, 2020
@IwanKaramazow IwanKaramazow deleted the LineApi branch July 23, 2020 05:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant