satyr/coco — Issue #107: Sometimes asterisk gets dropped
Author: thejh
Created: 2012-01-07 23:39:48+00:00
State: open

Looks like a bug to me:

a
*b

compiles to

a;
b;

Also:

*b

compiles to

b;

Lexer produces:

NEWLINE:\n { } ASSIGN:= INDENT:1 ID:b DEDENT:1 NEWLINE:\n

However, this works:

a*
b

I think that part of the problem is in the lexer https://github.com/satyr/coco/blob/master/src/lexer.co#L318-321 because it doesn't check the first char of the current line, only the last one of the previous line, but that's probably not everything.