File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 16
16
17
17
grammar = '''?locus : join | complement | complement_join | location
18
18
join : "join" "(" (complement | location ) ("," (complement | location ))+ ")"
19
- complement : "complement" " (" location ")"
19
+ complement : "complement(" location ")"
20
20
complement_join : "complement" "(" "join" "(" location ("," location)+ ")" ")"
21
- location : pos [".." pos ] | "FromElsewhere" "('" _SEQID "'," pos [".." pos] ")"
21
+ location : pos [ _RNG pos ] | "FromElsewhere" "('" _SEQID "'," pos [ _RNG pos ] ")"
22
22
?pos : num | "Before" "(" num ")" | "After" "(" num ")"
23
- ?num : NUMBER -> number
23
+ ?num : /[0-9]+/ -> number
24
24
_SEQID: /[A-Za-z0-9._-]+/
25
+ _RNG: ".."
26
+
25
27
26
28
%import common.NUMBER
27
29
%import common.WS
Original file line number Diff line number Diff line change 1
1
from __future__ import unicode_literals
2
2
import unittest
3
3
from pyoma .browser import locus_parser
4
+ import logging
5
+ logging .basicConfig (level = logging .DEBUG )
4
6
5
7
6
8
class LocusParserTest (unittest .TestCase ):
You can’t perform that action at this time.
0 commit comments