Closed powerdude closed 1 year ago
What exactly do you need help with? You can compose the name
, instructions
, ingredient
parsers something like this:
from n in name.Before(NewLine)
from ingreds in ingredient.SeparatedBy(NewLine)
from instrs in instructions
select new RecipeModel(name, ingreds, instructions);
what is NewLine
?
Apologies, I meant EndOfLine
.
nevermind, I've made some progress. Thanks!
Hi,
I'm trying to write a parser to read something like a recipe. If I have a simple version like this:
I think I have the pieces I need, but not sure how to assemble them to get this to get this to work.
Ultimately, I'd like to be able to parse something like this:
Any help greatly appreciated.