Skip to content

Elm: minor issues #3319

@masatake

Description

@masatake

This issue gathers minor topics about the Elm parser.
These topics are not the reason to delay merging #3312, Peg based ELM parser.

  • normalize typeref values
port outgoing : Enc.Value                                            -> Cmd msg

Though many spaces are between Value and ->, the tags output should be:

outgoing	...	typeref:description:Enc.Value -> Cmd msg	roles:def

or

outgoing	...	typeref:description:Enc.Value->Cmd msg	roles:def

The request for normalization is popular. So vString should provides a utility function that can be used in many parsers.

  • normalize signature fields
  • tagging function parameters
  • exported (or exposed) role for tagging f in import A exposing (f) module A exposing (f) as a reference tag
  • attach file: field if f is exposed from a module (I misunderstood the meaning of file:.)

Quoted from elm.peg:

# To do:
# Maybe do:
# - let/in blocks
#   - Allow tuples on the LHS. Eg '(val1, val2) = valFunc'.
#   - Inner functions' type annotations are used in the function's
#     type description.
#   - Inner functions can have more complex parameters.
# - Functions
#   - Allow non-Latin upper and lower case. Use
#     https://util.unicode.org/UnicodeJsps/properties.html
#     combined with \p{Lu}, \p{Ll} and \p{L}.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions