Grammar, AST and Syntax

Hi, I am relative new to Rust, but I like it, and I am learning by using AI, I am trying to build my own Markdown editor, and in that content, I could need some help on my markdown flavor.

I am using Pest.rs to write the grammar file and RON as serialization format for both my AST and syntax.

I have been studying grammar, AST and syntax for a while and spend about 2 weeks perfecting my files to begin creating the phrase and render for my project.

I hope someone in here knows more about this than me to review my gramma.pest, ast.ron and syntax.ron files :slight_smile:

Best regards:
Kim Skov Rasmussen

I think the link to the files you mentioned is this one (unless I misunderstood): Marco/src/assets/markdown_schema/Marco at main · Ranrar/Marco · GitHub

I don't know the pest grammar not its limitations, unfortunately, so I can't really help.

EDIT: However, I saw a library in the past that was parsing CommonMark, just in case that helps: pulldown-cmark (it's used in Zola, among others).

1 Like

Hi Thanks, for the response, I can see I forgot to mention that I don't have uploaded the files, yet, because they are not ready.

Yes, I used to use CommonMark and pulldown-cmark, but i have desided to built my own gramma, ast and syntax for my Markdown format.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.