Skip to content

Configuration not discovery #141

@sfkleach

Description

@sfkleach

Story Statement

As a coder, I can give monogram a pre-defined set of tokenisation rules so that I can restrict the grammar that monogram accepts so it fails early and I can skip the : and ! markers.

Goals

Monogram takes an additional parameter which specifies a tokenisation-rules file e.g. myrules.mg-rules. The rules specify:

  • Identifiers

    • Which identifiers may play the role of surround-forms.
    • Which identifiers may play the role of prefix-forms.
    • Which identifiers may play the role of labels.
  • Operators

    • Which operators may play the role of infix-operators
    • Which operators may play the role of prefix-operators
  • Delimiters

    • Which symbols may play the role of delimiters (brackets)
    • Which symbols may play the role of prefix function-call
  • Strings

    • Which string quotes are allowed
    • Are string tags allowed?
  • Dot

    • Is dot notation allowed?
  • Markers

    • Is a ! prefix marker allowed?
    • Is a : label marker allowed?
    • Is a standalone : allowed?
  • XML tags

    • Are XML tags allowed?

Acceptance Criteria

  • Once a token is classified as definitely a prefix form or a label the associated marker syntax is redundant. Reflecting that it may be omitted. If the rules forbid the markers then : and ! will be interpreted as ordinary operators.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions