This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[package] | |
name = "gluon_userdata" | |
version = "0.1.0" | |
edition = "2018" | |
[dependencies] | |
gluon = "0.13.1" | |
gluon_codegen = "0.13.1" | |
gluon_vm = "0.13.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cargo test | |
Compiling csvmap v0.1.0 (file:///home/charetjc/files/development/rust/tinker/csvmap) | |
Finished dev [unoptimized + debuginfo] target(s) in 2.34 secs | |
Running target/debug/deps/csvmap-cdc7458d4bf17d5e | |
running 5 tests | |
test tests::can_parse ... ok | |
test tests::can_parse_single_quoted_shell_arg ... ok | |
test tests::can_parse_double_quoted_shell_arg ... ok | |
test tests::can_parse_any_shell_arg ... FAILED |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use ast::*; | |
use std::str::FromStr; | |
grammar; | |
pub Entry: () = { | |
"#" "[" "entry" "]" => (), | |
}; | |
pub Statement: Statement<'input> = { | |
"let" <var:Variable> "=" <init_expr: Expr> ";" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern crate languageserver_types as ls_types; | |
pub trait Request { | |
type Param; | |
type Result; | |
// Has to be a method as associated constants are unstable | |
fn method(&self) -> &'static str; | |
} | |
struct RequestStruct<Params> { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern crate combine; | |
use combine::*; | |
use combine::combinator::take_while1; | |
use std::fs::File; | |
use std::env; | |
#[derive(Debug)] |