rvirding / luerl

Lua in Erlang
Apache License 2.0
1.02k stars 140 forks source link

luerl.hrl: fix syntax error #132

Closed awalterschulze closed 3 years ago

awalterschulze commented 3 years ago

I am not sure, but this looks like a syntax error?

rvirding commented 3 years ago

Yes, it is a syntax error but the epp parser is kind and accepts that a final ) maybe missing. It can do this as macros are handled at token level with very little parsing. This by design.

awalterschulze commented 3 years ago

Oh wow, so would erlang actually run this code without the final parenthesis?