eclipse-qvtd / org.eclipse.qvtd

Eclipse Public License 2.0
0 stars 0 forks source link

[[qvtr] Improve error tolerance #421

Open eclipse-qvtd-bot opened 12 hours ago

eclipse-qvtd-bot commented 12 hours ago

| --- | --- | | Bugzilla Link | 552345 | | Status | NEW | | Importance | P3 normal | | Reported | Oct 23, 2019 07:06 EDT | | Modified | Oct 23, 2019 07:15 EDT | | Reporter | Ed Willink |

Description

A bad ';' in QVTr source leafs to errors that can be really hard to fix.

THe grammar might be much improved by allowing

';' following more '}' particularly at the end of domains.

',' at the end of of comma-separated list

';' as an alternative to ',' separation.

eclipse-qvtd-bot commented 12 hours ago

By Ed Willink on Oct 23, 2019 07:15

(In reply to Ed Willink from comment #0)

';' following more '}' particularly at the end of domains.

The problme is that the typical

domain x { ... }

might be

domain x { ... } ... default_values { ... }

so a trailing ; is mandated contrary to the expectation that } finishes.

key also has a mandatory '}' ';' finish.