I am studying the PP smaltalk parser and while trying to parse a literal array, I stumbled on a problem:
initially I could not parse simple expressions like 'a := 100' looking into it, I found that PPSmaltalkGrammar>>number cannot parse '100'
since the definition is a bit complex --- number ^ ($- asParser optional , #digit asParser) and , [ :context | [ (NumberParser on: context stream) nextNumber ] on: Error do: [ :err | PPFailure message: err messageText at: context position ] ] asParser ---
I was wondering if anyone could shed some light on this
nicolas