Hacker News new | ask | show | jobs
by chrisseaton 2239 days ago
> Most languages have context-free syntax

Do they? I haven't done a survey of languages but I would guess most are context-sensitive.

1 comments

I would guess so, too. In my experience, they do strive to be CF, the CS parts express mildly/are few and far between and often are accidental.

That makes using a CFG parser practical and hacking around the problems caused by CS does not take much effort.