softlang / metalib

A Chrestomathy of DSL implementations
https://softlang.github.io/metalib
9 stars 1 forks source link

Elision awareness of code rendering #15

Closed rlaemmel closed 7 years ago

rlaemmel commented 7 years ago

We should support YAS elision; in this manner, no line ranges need to be specified for YAS contributions:

https://github.com/softlang/yas/blob/master/tools/elider.py

Idiom BEGIN END

// BEGIN ...
This code is not shown.
// END ...

Idiom ...

This line

// ...

is rendered as follows:

...
rlaemmel commented 7 years ago

Looking at https://softlang.github.io/metalib/pythonInternal.html

Seeing this:

def chaseStates(source, fsm, states): # ...

Please remove "#" when rendering this sort of ellision.