- https://nitschinger.at/Writing-a-simple-lexer-in-PHP/
- https://www.codediesel.com/php/building-a-simple-parser-and-lexer-in-php/
- https://github.com/weltling/parle/blob/master/README.md
- https://jwage.com/posts/2012/09/15/writing-a-parser-in-php-with-the-help-of-doctrine/
- https://vierbergenlars.wordpress.com/2013/08/09/creating-a-parser-in-php/
Category: Uncategorized
Been doing some reading about lexers and parsers in PHP.Β Some useful resources:
I’ve been coding Laravel in Spacemacs of late, and I wanted to set it up so that blade templates are loaded using
web-mode
.
Hey presto, the answer is already on stackoverflow.
Put this in the user-config
section of .spacemacs
:
(add-to-list 'auto-mode-alist '("\\.blade.php\\'" . web-mode))
The City & The City is really good. Just watched episode 2 and getting hooked. It’s a really interesting concept of a mental border. A means to segregate people psychologically even when there is no physical border.
Plus, loving all the Northern accents.
My fiction book at the moment is Blue Remembered Earth by Alistair Reynolds. I’m enjoying it so far. The characters are a bit flat, but it’s got an interesting mystery in it. One thing I really like is the background world, it’s around mid-22nd century, and Africa, China, and India are the big world powers. It’s not discussed at all in the narrative – but it seems like a very possible future. It’s relatively peaceful and quasi-Utopian, although it’s hinted at that some of that peace seems to come from authoritarian-sounding mass surveillance.
“it takes a lot of courage to go out there and radiate your essence”
true enough
Just watched the first episode of The City & The City. I enjoyed it. It’s a great book and they’ve done a good job of capturing some of the atmosphere of the book. It didn’t look 100% how I pictured it, but I got into it really quickly. It’s a fascinating story.
On a side note, did a street called Gunterstrasse actually feature in the book? It feels like a blatant reference to old divided Berlin, and I don’t recall the book being quite so explicit about that, but maybe I’m just forgetting.
Really interesting to learn that the developer of the ideas of Gross National Product (Kuznets) was also a very vocal critic of it being used as the only measure of a country’s success.
“the welfare of a nation can scarcely be inferred from a measure of national income”.
Reading Doughnut Economics by Kate Raworth. Really liking it so far. Challenges the ingrained assumptions of neoclassical economics and very readable too.