PLDB
Languages Features Calendar About Lists Add Language
GitHub icon

Merges Whitespace

Merges Whitespace

Merges Whitespace is a language feature.

Some languages merge repeated whitespace characters into 1 token as one of the first steps in lexing. Others treat whitespace as semantically meaningful and don't change it, but instead lex and parse it into individual structures. If the language supports features like block comments, it might preserve whitespace perfectly inside delimiters while shrinking other whitespace.

Languages with Merges Whitespace include JavaScript, C++, HOPE

Article source

PLDB - Build the next great programming language. v5.0.0 - Acknowledgements · Email · GitHub