13
How would you define your parser and lexer rules to parse a language that uses indentation for defining scope.
I have already googled and found a clever approach for parsing it by generating INDENT and DEDENT tokens in the lexer.
I will go deeper on this problem and post an answer if I come to something interesting, but I would like to see other approaches to the problem.
EDIT: As Charlie pointed out, there is already another thread very similar if not the same. Should my post be deleted?