misalcedo / tortuga

A CGI and WCGI server for HTTP/1.1
Apache License 2.0
7 stars 0 forks source link

Introduce basic parser for the DOT language. #25

Closed misalcedo closed 3 years ago

misalcedo commented 3 years ago

The goal is to have a language for programming in the large and in the small. The supervision structure is defined using the DOT language and custom attributes to allow for simple visualization of the actor system.

misalcedo commented 3 years ago

Bug with handling attributes that are not delimited by a semicolon or comma.

Need to add test for:123 = 456 789=000

Also a version with just a newline:

123 = 456\n789=000

and one with no space:

123 = 456789=000

misalcedo commented 3 years ago

todo:

  1. port as enum
  2. node statement
misalcedo commented 3 years ago

Verify that quoted strings support backslash by itself, with no character after it

misalcedo commented 3 years ago

Break up graph is mod into various files:

That way, testing is easier and the file is navigable.

Also, need to add test cases for full files.

Implement edge statements.

Lastly, document that this is a subset of DOT, not a 1:1 parser. For example, undirected graphs are not allowed. Subgraphs and clusters are fine.

Where DOT and this language diverge, DOT wins

Otherwise, we lose the ability to render the supervision tree.

misalcedo commented 3 years ago

Update parseattribute to use a new pub(crate parser for id = id. Then, implement the 2 remaining tokens (stmt, stmt_list)

Make token non-recursive

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 3 years ago

This issue has been automatically closed because it has not had recent activity. You may re-open the issue if it is still relevant.