Commits

Anonymous committed bc9accc

Bugfix: by-1 offset in nterminal-id.
Keywords: bugfix

* generator/fg-decl.lisp (nterminal-id):
Substract 1 from nterm-id.

Comments (0)

Files changed (1)

generator/fg-decl.lisp

 
 (declaim (inline nterminal-id))
 (defun nterminal-id (terminal grammar)
-  (- (nterm-id terminal) (first-nterminal-id grammar)))
+  (- (nterm-id terminal) 1 (first-nterminal-id grammar)))
 
 (defmethod nterm-name ((name null))
   nil)