Skip to content
This repository has been archived by the owner on Nov 9, 2023. It is now read-only.

Doesn't compile on absent new line #4

Open
ureeves opened this issue Nov 1, 2021 · 0 comments
Open

Doesn't compile on absent new line #4

ureeves opened this issue Nov 1, 2021 · 0 comments
Labels
area:cryptography anything related to cryptographic primitives, hashing and ZKP fix:bug Something isn't working team:Core Low Level Core Development Team (Rust)

Comments

@ureeves
Copy link
Member

ureeves commented Nov 1, 2021

Describe the bug

When compiling a circuit that is missing a final new line an error is produced:

Error: Pest(Error { variant: ParsingError { positives: [sign], negatives: [] }, location: Pos(18), line_col: Pos((2, 9)), path: None, line: "c + d = e", continued_line: None })

To Reproduce

Fill a file with a small circuit - perhaps the simple equation a+b=c and "forget" to add a new line at the end of the file. The run:

plangc compile test.plang

Expected Behavior
It shouldn't be a problem when there is a new line at the end of the circuit description.

@ureeves ureeves added area:cryptography anything related to cryptographic primitives, hashing and ZKP fix:bug Something isn't working team:Core Low Level Core Development Team (Rust) labels Nov 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area:cryptography anything related to cryptographic primitives, hashing and ZKP fix:bug Something isn't working team:Core Low Level Core Development Team (Rust)
Projects
None yet
Development

No branches or pull requests

1 participant