Use the |s| function instead of hardcoded |s0| value

Based on a patch by @fresheneesz:

  https://github.com/dmajda/pegjs/pull/148