File: scan.rs

package info (click to toggle)
rust-scanlex 0.1.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 144 kB
  • sloc: makefile: 4
file content (10 lines) | stat: -rw-r--r-- 266 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
extern crate scanlex;

fn main() {
    let def = "10 0.1 0.0 + 1.0e4 1e-3-5+4 0.1e+2";
    let text = std::env::args().skip(1).next().unwrap_or(def.to_string());
    let scan = scanlex::Scanner::new(&text);
    for t in scan {
        println!("{:?}",t);
    }   
}