eclipse-ocl / org.eclipse.ocl

Eclipse Public License 2.0
0 stars 0 forks source link

OCL Parser cuts leading $ of names #1383

Open eclipse-ocl-bot opened 1 month ago

eclipse-ocl-bot commented 1 month ago

| --- | --- | | Bugzilla Link | 446302 | | Status | NEW | | Importance | P3 minor | | Reported | Oct 08, 2014 08:05 EDT | | Modified | Oct 08, 2014 10:04 EDT | | Reporter | Ralph Gerbig |

Description

Hello,

I use the non xtext based OCL. I have an expression like this:

"self.$State$"

The parser cuts away the first "$" of "$State$" resulting in "State$".

Regards,

Ralph

eclipse-ocl-bot commented 1 month ago

By Ed Willink on Oct 08, 2014 10:04

As discussed at Models, the status of $ as a character is unclear in the specification, and the code mostly treats it as a special character that is available for use as a non-first letter.

It would probably be sensible to recategorize $ as a letter, simplifying the code and eliminating anomalies.

Minor: Unspecified behavior with a workaround of _'$State$'.