diff options
author | Juan Manuel Tomás <jtomas1815@gmail.com> | 2022-10-30 17:51:30 -0300 |
---|---|---|
committer | Juan Manuel Tomás <jtomas1815@gmail.com> | 2022-10-30 17:51:30 -0300 |
commit | 6a90bc2c3a2fb77a66c19e7400ea0e2fec410e26 (patch) | |
tree | f7774b66dfab0e73769e3ab783711504d673ef26 /input.lisp | |
parent | ea464736239bc5351f1c6a8d158e76fb35c3d080 (diff) | |
download | monparser-6a90bc2c3a2fb77a66c19e7400ea0e2fec410e26.tar.gz monparser-6a90bc2c3a2fb77a66c19e7400ea0e2fec410e26.zip |
Index lines and columns from 1 like most text editors
Diffstat (limited to 'input.lisp')
-rw-r--r-- | input.lisp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -27,7 +27,7 @@ (make-input :file filename :data (str:read-file filename))) (defun generate-report (input message) - (let ((line 0) (column 0)) + (let ((line 1) (column 1)) (dotimes (i (input-cursor input)) (let ((c (char (input-data input) i))) (case c |