Home
last modified time | relevance | path

Searched refs:parse (Results 1 – 23 of 23) sorted by relevance

/DragonOS/kernel/crates/rbpf/src/
H A Dasm_parser.rs66 let dec = many1(digit()).map(|x: String| x.parse::<i64>().unwrap()); in integer()
77 .map(|x: String| x.parse::<i64>().unwrap()) in register()
107 pub fn parse(input: &str) -> Result<Vec<Instruction>, String> { in parse() function
119 match with.parse(position::Stream::new(input)) { in parse()
132 use super::{ident, instruction, integer, operand, parse, register, Instruction, Operand};
138 assert_eq!(ident().parse("nop"), Ok(("nop".to_string(), ""))); in test_ident()
139 assert_eq!(ident().parse("add32"), Ok(("add32".to_string(), ""))); in test_ident()
140 assert_eq!(ident().parse("add32*"), Ok(("add32".to_string(), "*"))); in test_ident()
145 assert_eq!(integer().parse("0"), Ok((0, ""))); in test_integer()
146 assert_eq!(integer().parse("42"), Ok((42, ""))); in test_integer()
[all …]
H A Dassembler.rs20 parse, Instruction, Operand,
270 let parsed = (parse(src))?; in assemble()
/DragonOS/kernel/crates/intertrait/macros/src/
H A Dargs.rs3 use syn::parse::{Parse, ParseStream, Result};
30 fn parse(input: ParseStream) -> Result<Self> { in parse() method
67 fn parse(input: ParseStream) -> Result<Self> { in parse() method
68 let ty: Type = input.parse()?; in parse()
69 input.parse::<Token![=>]>()?; in parse()
73 targets: input.parse()?, in parse()
H A Dlib.rs5 use syn::{parse, parse_macro_input, DeriveInput, ItemImpl};
67 match parse::<Targets>(args) { in cast_to()
/DragonOS/kernel/crates/unified-init/macros/src/
H A Dlib.rs8 parse::{self, Parse, ParseStream},
51 let attr_arg = syn::parse::<UnifiedInitArg>(args)?; in do_unified_init()
53 let function = syn::parse::<ItemFn>(input)?; in do_unified_init()
192 fn parse(input: ParseStream) -> parse::Result<Self> { in parse() method
197 return Err(parse::Error::new( in parse()
203 let ident = input.parse::<syn::Ident>()?; in parse()
212 return Err(parse::Error::new( in parse()
220 return Err(parse::Error::new( in parse()
/DragonOS/user/apps/user-manage/src/parser/
H A Dparser.rs16 pub fn parse(args: Vec<String>) -> UserCommand { in parse() method
81 pub fn parse(args: Vec<String>) -> PasswdCommand { in parse() method
101 pub fn parse(args: Vec<String>) -> GroupCommand { in parse() method
/DragonOS/user/apps/user-manage/src/cmd/
H A Dpasswd.rs20 let cmd = PasswdParser::parse(args); in main()
H A Duseradd.rs37 let cmd = UserParser::parse(args); in main()
H A Duserdel.rs37 let cmd = UserParser::parse(args); in main()
H A Dgroupadd.rs37 let cmd = GroupParser::parse(args); in main()
H A Dgroupdel.rs37 let cmd = GroupParser::parse(args); in main()
H A Dgroupmod.rs37 let cmd = GroupParser::parse(args); in main()
H A Dusermod.rs37 let cmd = UserParser::parse(args); in main()
/DragonOS/user/apps/test_ebpf/syscall_ebpf/xtask/src/
H A Dmain.rs23 let opts = Options::parse(); in main()
/DragonOS/docs/
H A DMakefile15 export CURRENT_GIT_COMMIT_HASH := $(shell git rev-parse --short HEAD)
/DragonOS/kernel/src/libs/
H A Dkeyboard_parser.rs42 pub fn parse(&mut self, scancode: u8) -> TypeOneFSMState { in parse() method
43 self.current_state = self.current_state.parse(scancode, &mut self.status); in parse()
66 fn parse(&self, scancode: u8, scancode_status: &mut ScanCodeStatus) -> TypeOneFSMState { in parse() method
H A Delf.rs455 let shdr0 = <elf::section::SectionHeader as elf::parse::ParseAt>::parse_at( in parse_segments()
465 let entsize = <ProgramHeader as elf::parse::ParseAt>::validate_entsize( in parse_segments()
/DragonOS/tools/debugging/logmonitor/src/backend/
H A Dloader.rs17 let elf = goblin::elf::Elf::parse(&kernel_bytes).map_err(|e| { in load()
/DragonOS/tools/debugging/logmonitor/src/
H A Dmain.rs16 let command_line_args = command::CommandLineArgs::parse(); in main()
/DragonOS/kernel/src/driver/base/block/
H A Dmanager.rs199 partno = path[last_digit..].parse().ok()?; in path2devname()
/DragonOS/kernel/src/driver/keyboard/
H A Dps2_keyboard.rs196 fsm.parse(input); in handle()
/DragonOS/kernel/src/filesystem/devpts/
H A Dmod.rs245 DeviceNumber::new(Major::UNIX98_PTY_SLAVE_MAJOR, name.parse::<u32>().unwrap()); in create_with_data()
/DragonOS/user/apps/user-manage/src/check/
H A Dcheck.rs715 let r = uid.parse::<u32>(); in scan_passwd()
796 let r = gid.parse::<u32>(); in scan_group()