Just wondering if it is true that most of the modern language parsers are written in C?
consider:
input: /* empty string */
| input line
;
line: '\n'
| exp '\n' { printf ("\t%.10g\n", $1); }
;
exp: NUM { $$ = $1; }
| exp '+' exp { $$ = $1 + $3; }
| exp '-' exp { $$ = $1 - $3; }
| exp '*' exp { $$ = $1 * $3; }
| exp '/' exp { $$ = $1 / $3; }
| '-' exp %prec NEG { $$ = -$2; }
| exp '^' exp { $$ = pow ($1, $3); }
| '(' exp ')' { $$ = $2; }
;
http://dinosaur.compilertools.net/bison/bison_5.html#SEC27JS: no standard parser, but V8(chrome), SpiderMonkey(firefox) and Chakra(edge) are all C++
Go, C, C++: self-hosted (written in the same language)
Java, Erlang: parser/compiler self-hosted, but VMs written in C.