Nic Watson

Results 35 comments of Nic Watson

The list of changed shorthands are '\w, \W, \b, \B, \d, \D, \s and \S' (from https://docs.python.org/3/library/re.html#re.ASCII) I did a little research, and the only difference between Python 3.x and...

+1 for $ to represent end of string. I just ran into a need for this.

It is difficult to determine whether one has written an ambiguous grammar. Or, put another way, is it possible, given a Lark earley parser, to write a function that takes...

> > is it possible, given a Lark earley parser, to write a function that takes the parser and returns an input string, when fed into the parser, produces a...

See [paper](https://soft-dev.org/pubs/pdf/vasudevan_tratt__detecting_ambiguity_in_programming_language_grammars.pdf) for one strategy. It doesn't look easy by any means.

@za3k You can avoid the _ANON_0 by explicitly naming all your tokens. Lark has built-in names for the single-character tokens, but anything else, you'll need to come up with your...

This is an interesting question with lots and lots of caveats and subtle interactions. In a sense, this devolves into "How do I file I/O" in async? In most environments,...

The only time where I've seen this sort of thing happen is when file locking was accidentally bypassed, for example by sharing a file between docker containers, or opening the...

This whole area seems vaguely familiar. I did run across an issue on Windows once upon a time where a failure in `set_mapsize` left the process in an unsafe state....