Document how different modules are produced for parsing

Open
#1,278 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Stale

Research direction

Start by reviewing the parsing/unparsing section of pending-documentation.md and tracing how the issue's LANGUAGE-PARSING and _$SYNTAX modules are produced. Document each implicitly created module, how it is created, and what it is used for; the issue is complete when this list is added here or to the appropriate documentation section.

Written by the indexing model from the issue text.

Description

documentation

Right now we have lots of different ways that new modules are produced for parsing. Every time there is a change to the parsing logic, it's often complicated by the fact that not everyone understands how these implicit modules are created.

For example, the LANGUAGE-PARSING module is a custom module that is created for parsing programs in the language. How is it constructed? What can it be used for? Another example is the _$SYNTAX modules created for each module in the definition.

It would be good to list the modules that are created implicitly and added to the definition, along with (i) how they are created, and (ii) what those modules can be used for.

I think just adding the list here to this issue should be OK, or if it seems appropriate to add it to the parsing/unparsing section of pending-documentation.md it can be added there.

Dominant language
Python
Stars
591
Forks
163
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from runtimeverification/k

All issues in runtimeverification/k

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.