Skip to content

MainShayne233/parcomb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

parcomb

CI Status

A gleam implementation of the Xcruciating Markup Language Parser that you build with this guide on parser combinators: bodil.lol/parser-combinators/.

Example

This input:

<top label=\"Top\">
  <semi-bottom label=\"Bottom\"/>
  <middle>
      <bottom label=\"Another bottom\"/>
  </middle>
</top>

will get parsed as:

 Ok(
   tuple(
     Parsable(""),
     Element(
       "top",
       [Attribute("label", "Top")],
       [
         Element("semi-bottom", [Attribute("label", "Bottom")], []),
         Element(
           "middle",
           [],
           [Element("bottom", [Attribute("label", "Another bottom")], [])],
         ),
       ],
     ),
   ),
 ),

Quick start

# Build the project
rebar3 compile

# Run the eunit tests
rebar3 eunit

# Run the Erlang REPL
rebar3 shell

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published