FIXTradingCommunity / tablature

Easy authoring for rules of engagement using markdown
https://www.fixtrading.org/
Apache License 2.0
11 stars 8 forks source link

Supply document position for error reporting #50

Closed donmendelson closed 3 years ago

donmendelson commented 3 years ago

The markdown parser already supplies document position in parsing exceptions as line number plus character position in line. However, structural anomalies without a syntax error provide no document context. For example, an application may report that the name of an element is missing. There would be no way for a user to know which line in a markdown file caused the problem.

Supported by md-grammar -- see https://github.com/FIXTradingCommunity/md-grammar/issues/3