A more expansive definition of "syntax" will be the set of all ordered combinations of characters that form the correct document in a given language. Thus, “syntactic grammar” can be briefly described as part of a language grammar that describes how various markers can be ordered to form meaningful phrases.
Of course, it comes down to your provided definition of “lexical grammar”, so let me highlight the main difference - lexical grammar describes the structure of the lexicon, that is, each token (word) used in the language. The syntactic grammar describes how phrases and documents are formed from these tokens.
Michael Eric Oberlin
source share