File tree 5 files changed +32
-9
lines changed
5 files changed +32
-9
lines changed Original file line number Diff line number Diff line change
1
+ sudo : false
2
+ dist : trusty
1
3
language : rust
2
4
5
+ matrix :
6
+ fast_finish : true
7
+ allow_failures :
8
+ - rust : nightly
9
+
3
10
rust :
4
11
- nightly
5
12
- beta
6
13
- stable
14
+
15
+ os :
16
+ - linux
17
+ - osx
18
+
19
+ before_script :
20
+ - |
21
+ pip install 'travis-cargo<0.2' --user &&
22
+ export PATH=$HOME/.local/bin:$PATH
23
+
24
+ script :
25
+ - |
26
+ travis-cargo build &&
27
+ travis-cargo test &&
28
+ travis-cargo bench
29
+
30
+ after_success :
31
+ - travis-cargo --only stable coveralls --no-sudo --verify
32
+
33
+ env :
34
+ global :
35
+ - TRAVIS_CARGO_NIGHTLY_FEATURE=""
Original file line number Diff line number Diff line change @@ -4,5 +4,3 @@ version = "0.1.0"
4
4
authors = [
" Sushant <[email protected] >" ]
5
5
6
6
[dependencies ]
7
- num = " *"
8
- petgraph = " *"
Original file line number Diff line number Diff line change 6
6
// except according to those terms.
7
7
8
8
use std:: fmt:: Debug ;
9
- use num:: traits:: Num ;
10
9
use std:: collections:: VecDeque ;
11
10
12
11
const ESIL_INTERNAL_PREFIX : char = '$' ;
@@ -402,7 +401,7 @@ impl Tokenize for Tokenizer {
402
401
_ => vec ! [ Token :: EInvalid ] ,
403
402
}
404
403
} else if t. starts_with ( "0x" ) {
405
- match Num :: from_str_radix ( t. trim_left_matches ( "0x" ) , 16 ) {
404
+ match u64 :: from_str_radix ( t. trim_left_matches ( "0x" ) , 16 ) {
406
405
Ok ( v) => vec ! [ Token :: EConstant ( v) ] ,
407
406
Err ( _) => vec ! [ Token :: EInvalid ] ,
408
407
}
Original file line number Diff line number Diff line change 5
5
// This file may not be copied, modified, or distributed
6
6
// except according to those terms.
7
7
8
- extern crate num;
9
- extern crate petgraph;
10
-
11
8
pub mod lexer;
12
9
pub mod parser;
13
10
//pub mod memory;
Original file line number Diff line number Diff line change @@ -549,10 +549,10 @@ mod test {
549
549
}
550
550
551
551
#[ test]
552
- fn parser_skip_false ( ) {
552
+ fn parser_follow_false ( ) {
553
553
}
554
554
555
555
#[ test]
556
- fn parser_folloow_true ( ) {
556
+ fn parser_follow_true ( ) {
557
557
}
558
558
}
You can’t perform that action at this time.
0 commit comments