Parser Lexer issues - xarvh/squarepants GitHub Wiki

  • Add keyword to get representation of type and of value: introspect_type, introspect_value?

NOTE

  • Error positions span from the start of a block and continue till the start of the next block rather than stopping before the newlines!

  • Add test for triple quotes containing quotes

  • Add tests for Text functions

  • Add test: variable names and attr names cannot contain /

DUMP SIGNIFICANT SPACE

A block can contain 3 things: *) do someExpressionWithSideEffects *) value = expression *) return expression which must be the last

risultato =
     unaFunzione unArgomento (
           x = 3
           y = 4
           do log "blah" stuff
           return x + y
          )
          unAltroArgomento

So that stuff like:

         funz =
     fn x:
         y = x + x
 return y

Is unambiguous and independent from indentation.

ISSUES

  • Will need a terminator also for try..as.

  • And we need a dedicated parser for SPON?

  • This is ambiguous:

a = b 'cons c = expression