8000 [Question] Can any special operator be used inside declaration like ARR_TAIL, ARR_HEAD and ARR_RANGE? · Issue #78 · ThomasMertes/seed7 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[Question] Can any special operator be used inside declaration like ARR_TAIL, ARR_HEAD and ARR_RANGE? #78
Open
@pierre-rouleau

Description

@pierre-rouleau

Hi @ThomasMertes ,

Inside the lib/array.s7i file, the declaration of ARR_TAIL, ARR_HEAD and ARR_RANGE place the .. special operator before, after or in-between arguments like this:

const func arrayType: (in arrayType: arr) [ (in integer: start) .. ]    is action "ARR_TAIL";

 const func arrayType: (in arrayType: arr) [ .. (in integer: stop) ]     is action "ARR_HEAD";

      const func arrayType: (in arrayType: arr) [ (in integer: start) ..
                                                  (in integer: stop) ]        is action "ARR_RANGE";

Is this a special case? Or is it it possible to create signatures where any special operator could be used in any order/sequence of argument parenthesis-block?

I am trying to create a regular expression to match any format of function or procedure arguments. That's the reason I am asking this question.
The regexp I have is already quite big and I'm trying to reduce it as much as possible.

In the current implementation of seed7-mode, this is important because it allows detection of functions/procedure declarations and that is used in several places: navigation, auto-indentation, imenu, Speedbar and will also have an impact on cross-reference.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0