use the -newos toolchain even if -elf is present.
[newos.git] / apps / shell / parse.h
blob9a8c13a9da5b06601f42c58edcc1375e8fc01746
1 #ifndef _parse_h_
2 #define _parse_h_
3 #include "shell_defs.h"
4 #define IS_IDENT_CHAR(c) isalnum(c) || (c == '_')
9 int shell_parse(const char *buf, int len);
10 bool scan(scan_info *info);
11 int init_scan_info_by_file(const char *file_name,scan_info *info);
12 void init_scan_info(const char*in,scan_info *info);
13 bool scan_info_home(scan_info *info);
14 bool scan_info_next_line(scan_info *info);
16 bool expect(scan_info *info,int check);
17 void parse_vars_in_string(const char *string,char *out,int max_len);
18 int parse_line(const char *buf, char *argv[], int max_args, char *redirect_in, char *redirect_out);
19 bool set_scan_info_line(scan_info *info);
20 char *id_to_token(int id);
22 #endif