Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Most languages have context-free syntax

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



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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: