Skip to content

Instantly share code, notes, and snippets.

@lopex
Created August 28, 2018 21:03
Show Gist options
  • Save lopex/32f898523bf3670488298d22cdb7d792 to your computer and use it in GitHub Desktop.
Save lopex/32f898523bf3670488298d22cdb7d792 to your computer and use it in GitHub Desktop.
optimize: MAP_SB
anchor: []
sub anchor: []
dmin: 1 dmax: 3
threshold length: 2
map: n = 6
[0, 1, 2, 3, 4, 5]
stack used: true
templates: 0
code length: 80
[begin-line]@0(1) [mem-start:1]@1(2) [push:(22)]@3(2) [push:(9)]@5(2) [cclass:2]@7(9)
[cclass:10]@16(9) [jump:(11)]@25(2) [exact1:2]@27(2) [cclass:4]@29(9) [mem-end:1]@38(2)
[push:(13)]@40(2) [mem-start-push:2]@42(2) [cclass:4]@44(9) [mem-end:2]@53(2) [mem-start:3]@55(2)
[cclass:6]@57(9) [cclass:10]@66(9) [mem-end:3]@75(2) [end-line]@77(1) [end]@78(1)
[finish]@79(1)
PATTERRN ^([0-1]?[0-9]|2[0-3])([:\-,\.])?([0-5][0-9])$
OPTIONS: 0
match_at: str: 0, end: 4, start: 0, sprev: -1
size: 4, start offset: 0
0> "9:30" [begin-line]@0(1)
0> "9:30" [mem-start:1]@1(2)
0> "9:30" [push:(22)]@3(2)
0> "9:30" [push:(9)]@5(2)
0> "9:30" [cclass:2]@7(9)
0> "9:30" [cclass:10]@16(9)
1> ":30" [jump:(11)]@25(2)
1> ":30" [mem-end:1]@38(2)
1> ":30" [push:(13)]@40(2)
1> ":30" [mem-start-push:2]@42(2)
1> ":30" [cclass:4]@44(9)
2> "30" [mem-end:2]@53(2)
2> "30" [mem-start:3]@55(2)
2> "30" [cclass:6]@57(9)
3> "0" [cclass:10]@66(9)
4> "" [mem-end:3]@75(2)
4> "" [end-line]@77(1)
4> "" [end]@78(1)
4
Region:
0: (0-4) 1: (0-1) 2: (1-2) 3: (2-4)
DONE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment