itod / pegkit

'Parsing Expression Grammar' toolkit for Cocoa/Objective-C
MIT License
392 stars 37 forks source link

ParserGenApp Newline issues #22

Closed alamantia closed 5 years ago

alamantia commented 9 years ago

I've been having a lot issues with how the new line character is handled inside the ParserGenApp

Anytime I directly try to create/edit a grammar from the NSTextView it breaks compleatly

This case was after typing the following line

test = “Hello”;

2015-04-11 18:39:00.260 ParserGenApp[11654:1662437] *\ Assertion failure in -[PKSymbolState nextTokenizerStateFor:tokenizer:], /Users/anthonyl/source/pegkit/src/PKTokenizerState.m:106 2015-04-11 18:39:00.260 ParserGenApp[11654:1662437] Invalid parameter not satisfying: c < STATE_COUNT 2015-04-11 18:40:26.656 ParserGenApp[11654:1662437] Failed to match next input token: Expected : «EOF»

alamantia commented 9 years ago

Note - copying and pasting the same line from vim works

yepher commented 8 years ago

I don't think this is a new line issue. I think it is related to smartQuotes and smartDashes and other smart characters that was turned on in NSTextView. I would be interested if it still happens if you retest after the PR that fixed the SmartChar issues.

I think this should have been fixed by https://github.com/itod/pegkit/issues/44 which turned off smartQuotes and smartDashes.

I recommend closing this issue if there is no feedback. I've been copying and pasting and am no longer having any issues with parsing errors in ParseGenApp

alamantia commented 5 years ago

Closing this issue out since it's been resolved.