|
|
|
|
|
by btown
3271 days ago
|
|
You're absolutely right; Babel's parser is very much hand-coded, and adding syntax requires deep knowledge of the internals. Not impossible, but not for the faint of heart. My dreams of having the safe navigation operator from Coffeescript (a?.b?.c) must yet remain unfulfilled... https://github.com/babel/babylon/blob/master/src/parser/expr... |
|
Not for long: https://github.com/babel/babel/pull/5813