Is there a smart way to use different types of brackets with ANTLR

前端 未结 0 1540
故里飘歌
故里飘歌 2020-12-04 18:08

I\'m making a Lisp parser and I wanted to accept the following line:

(defvar a [+ 2 1] )

But not this one:

(defvar a [+ 2 1) ]

相关标签:
回答
  • 消灭零回复
提交回复
热议问题