File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
branches/snap-stage3/src/grammar Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: 7be8f0af0393dcdb077c2f6b1653836fd3fba235
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: cbd6799110b858505c271b8169e356c62e34b80a
4
+ refs/heads/snap-stage3: dd3afb42d1cc5eb11f2e024167aca0a6d6173b98
5
5
refs/heads/try: 502e4c045236682e9728539dc0d2b3d0b237f55c
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
Original file line number Diff line number Diff line change @@ -225,7 +225,9 @@ fn main() {
225
225
226
226
let args = std:: os:: args ( ) ;
227
227
228
- let token_map = parse_token_list ( File :: open ( & Path :: new ( args. get ( 2 ) . as_slice ( ) ) ) . unwrap ( ) . read_to_string ( ) . unwrap ( ) . as_slice ( ) ) ;
228
+ let mut token_file = File :: open ( & Path :: new ( args. get ( 2 ) . as_slice ( ) ) ) ;
229
+ let token_map = parse_token_list ( token_file. read_to_string ( ) . unwrap ( ) . as_slice ( ) ) ;
230
+
229
231
let mut stdin = std:: io:: stdin ( ) ;
230
232
let mut antlr_tokens = stdin. lines ( ) . map ( |l| parse_antlr_token ( l. unwrap ( ) . as_slice ( ) . trim ( ) , & token_map) ) ;
231
233
You can’t perform that action at this time.
0 commit comments