Live data from Hacker News

The Jim Roskind C/C++ Grammar

blog.robertelder.org

1–10 of 10 posts

Re: The Jim Roskind C/C++ Grammar

#3
In today’s world it seems like this article should be a repo up on github. I had never really thought of github in terms of it’s archiving and historical preservation propertie. FTP if it hasn’t already is going the way of telnet, gopher and Usenet

Re: The Jim Roskind C/C++ Grammar

#5
I guess the "lexer hack" probably has something to do with the lexer refering back to the symbol table to disambiguate things like typecast and function calls? Ie T(x) and f(x). Certainly there are other ambiguities that this particular hack may not resolve?

Re: The Jim Roskind C/C++ Grammar

#6
post #3

In today’s world it seems like this article should be a repo up on github. I had never really thought of github in terms of it’s archiving and historical preservation propertie. FTP if it hasn’t already is going the way of telnet, gopher and Usenet

I uploaded the contents of the c++grammar2.0.tar.Z file to https://github.com/palotasb/c-grammar2.0.tar.Z

Re: The Jim Roskind C/C++ Grammar

#8
Hey I worked with Jim!

Fun story: a project we worked on together involved some Python and he suggested that he didn't really know Python. At some point I somehow noticed that he wrote the Python profiler (see the name at the top https://github.com/python/cpython/blob/2.7/Lib/profile.py ). When I asked him about it he made some comment about how he didn't really know the language but he needed a profiler at some point, the language didn't have one, so he just wrote it.

Re: The Jim Roskind C/C++ Grammar

#9
For another cool .y (YACC) and .l (Flex) setup, check out what Postgres uses to parse SQL queries:

https://github.com/postgres/postgres/blob/master/src/backend...

https://github.com/postgres/postgres/blob/master/src/backend...

Link to all files / README: https://github.com/postgres/postgres/tree/master/src/backend...

Re: The Jim Roskind C/C++ Grammar

#10
post #3

In today’s world it seems like this article should be a repo up on github. I had never really thought of github in terms of it’s archiving and historical preservation propertie. FTP if it hasn’t already is going the way of telnet, gopher and Usenet

I wouldn't count on github for those purposes. They are files hosted under unique accounts -- those accounts could just delete their repos. If there is a need to archive something, I always make my own archive as opposed to bookmarking a hosting site.