What is the difference between "syntax" and "context-free syntax"?
What the difference between the two ways to define a String type?
1、
syntax
-> {ast(“String(<2>)”)}lexical syntax
“"” -> QMLex
StringChar* -> StringLex
~["\n] -> StringChar
“\"” -> StringChar
2、lexical syntax
Asked by ZJG on 15 April 2013 at 09:12
“"” StringChar* “"” -> String
StringChar* -> StringLex
~["\n] -> StringChar
“\"” -> StringChar