rohilt / habits

A simple, plain-text habit tracker
habits-nine.vercel.app
2 stars 0 forks source link

Implement full grammar in parser #4

Open rohilt opened 3 years ago

rohilt commented 3 years ago

Implement full grammar in the parser, as described in the comments of #1

rohilt commented 3 years ago

Need to handle newlines properly, the function that worked in the console was:

contents.split(/\s*\n(?!\x)/)
rohilt commented 3 years ago

Should also just define the entire grammar better, too much ambiguity with characters allowed right now (e.g., I don't think that the README demo works since there is a - in one of the property values)