daeisbae / AParser

Yet another programming language for educational purpose and simplicity
https://daeisbae.github.io/AParser/
MIT License
1 stars 0 forks source link

Add whitespace expression #27

Closed daeisbae closed 6 months ago

daeisbae commented 6 months ago

Add whitespace detection to the AST node.

The whitespace token will be converted to whitespace expression and will be used for strict syntax checking

Ex.

// Require go like func syntax.
// Whitespace after the func identifier then the left brace
func main {
  hello()
}