Skip to content

Support for widget name mangling in pvdevelop (partial parser revamp) #30

@hackfin

Description

@hackfin

Hi,

I have added some basic name mangling to the pvdevelop tree to allow usage of C style identifiers as widget names. The reason for that is that I wanted to reference directly to named abstract run-time properties in order to prototype more rapidly.
The support is however quite basic and will require way more testing. Also, I am unable to cover the lua wrapper side testing for now, so I'd be happy if someone with lua experience would review and assist with testing.

The modifications: https://github.com/hackfin/pvb/tree/netpp_mods

Example usage for mangling to be effective:

When adding a widget, prefix the ObjectName in the Dialog with a '_', for example: _Stream.HandledData. If not prefixed, names will be emit like usual and not mangle characters that might break compilation.

In the process, it turned out to make sense to rewrite the parser, hopefully eliminating some more issues with lost widget properties.

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