Skip to content
This repository has been archived by the owner on Jul 26, 2018. It is now read-only.

Support [^ ] #12

Open
tokuhirom opened this issue Jun 20, 2013 · 1 comment
Open

Support [^ ] #12

tokuhirom opened this issue Jun 20, 2013 · 1 comment

Comments

@tokuhirom
Copy link

How can I capture characters without spaces like perl's \S?
[^ ] does not match to non-space character.

@nddrylliog
Copy link
Member

[^something] seems to work, it's used in the ooc grammar for example: https://github.com/nddrylliog/nagaqueen/blob/master/grammar/nagaqueen.leg#L1428 and [<space>] seems to work as well: https://github.com/nddrylliog/nagaqueen/blob/master/grammar/nagaqueen.leg#L470 - so I don't see what would go wrong with [^ ] - enabling YYDEBUG and studying the output on small inputs would probably help you quite a lot.

Amos Wenger
Chief Urchin

On Thursday, June 20, 2013 at 3:17 AM, Tokuhiro Matsuno wrote:

How can I capture characters without spaces like perl's \S?
[^ ] does not match to non-space character.


Reply to this email directly or view it on GitHub (#12).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants