Skip to content
Snippets Groups Projects
Commit 221f88d1 authored by Damien George's avatar Damien George
Browse files

tests/extmod: Add test for ure debug printing when compiling a regex.

parent e9cb1f80
No related branches found
No related tags found
No related merge requests found
# test printing debugging info when compiling
import ure
ure.compile('^a|b[0-9]\w$', ure.DEBUG)
0: rsplit 5 (3)
2: any
3: jmp 0 (-5)
5: save 0
7: split 14 (5)
9: assert bol
10: char a
12: jmp 23 (9)
14: char b
16: class 1 0x30-0x39
20: namedclass w
22: assert eol
23: save 1
25: match
Bytes: 26, insts: 14
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment