Command Patterns & Static Site Generators

First off, a snippet from the language processor in StupidRPG. This section handles the command patterns the game can (attempt to) interpret.
Examples are included for my own benefit; it became difficult to keep track of how exactly each pattern might present itself within the game.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Pattern list
// Cannot start with a modifier
// In order of priority (highest to lowest):
patterns = [
'VERB', // inventory
'VERB NOUN', // eat baby
'VERB MODIFIER', // saunter west
'VERB MODIFIER NOUN', // get in closet
'VERB NOUN MODIFIER NOUN', // attack goblin with hammer
'VERB MODIFIER MODIFIER NOUN', // look north through telescope
'VERB MODIFIER NOUN MODIFIER NOUN', // look at bob through telescope
// Overflow patterns
'VERB MODIFIER NOUN MODIFIER TEXT', // talk to goblin about greatest fears
'VERB MODIFIER MODIFIER TEXT', // look north through telescope saucily
'VERB NOUN MODIFIER TEXT', // ask bob about back pain
'VERB MODIFIER TEXT' // talk about floops
];

Static Site Generators

In a nutshell, they seem a bit clunky. I’m currently trying out Middleman, which proved more straightforward to get set up than Jekyll.
In both cases, there is an unwelcome surplus of dependency-related issues, requiring specific (old) versions of Ruby and Python.
For hot new tech, these static site generators sure don’t play nice with other hot new tech.