gnuplot 源码 分析


#2013_10_05   星期六   add by greshem

command_ftbl 总领 整个程序  里面的函数 对应的  动作 就是 整个 软件的 核心了.

########################################################################
J:\portage\sci-visualization\gnuplot\gnuplot-4.6.1.chm::/S/463.html#L87
root/src/tables.c
  51 const struct gen_ftable command_ftbl[] =

 204 extern const struct gen_table command_tbl[];
 205 extern const struct gen_table plot_axes_tbl[];
 206 extern const struct gen_table plot_smooth_tbl[];
 207 extern const struct gen_table dgrid3d_mode_tbl[];
 208 extern const struct gen_table save_tbl[];
 209 extern const struct gen_table set_tbl[];
 210 extern const struct gen_table test_tbl[];
 211 extern const struct gen_table set_key_tbl[];
 212 extern const struct gen_table set_colorbox_tbl[];
 213 extern const struct gen_table set_palette_tbl[];
 214 extern const struct gen_table set_pm3d_tbl[];
 215 extern const struct gen_table color_model_tbl[];
 216 extern const struct gen_table set_hidden3d_tbl[];
 217 extern const struct gen_table show_style_tbl[];
 218 extern const struct gen_table plotstyle_tbl[];


#==========================================================================
# 程序 核心 命令集
 51 const struct gen_ftable command_ftbl[] =
  53     { "raise", raise_command },
  54     { "lower", lower_command },
  56     { "bind", bind_command },
  58     { "call", call_command },
  59     { "cd", changedir_command },
  60     { "clear", clear_command },
  61     { "do", do_command },
  62     { "evaluate", eval_command },
  63     { "exit", exit_command },
  64     { "fit", fit_command },
  65     { "help", help_command },
  66     { "?", help_command },
  67     { "history", history_command },
  68     { "if", if_command },
  69     { "else", else_command },
  70     { "load", load_command },
  71     { "pause", pause_command },
  72     { "plot", plot_command },
  73     { "print", print_command },
  74     { "pwd", pwd_command },
  75     { "quit", exit_command },
  77     { "refresh", refresh_command },
  79     { "replot", replot_command },
  80     { "reread", reread_command },
  81     { "reset", reset_command },
  82     { "save", save_command },
  83     { "screendump", screendump_command },
  84     { "set", set_command },
  85     { "shell", do_shell },
  86     { "show", show_command },
  87     { "splot", splot_command },
  88     { "stats", stats_command },
  89     { "system", system_command },
  90     { "test", test_command },
  91     { "undefine", undefine_command },
  92     { "unset", unset_command },
  93     { "update", update_command },
  94     { "while", while_command },
  95     { "{", begin_clause },
  96     { "}", end_clause },
  97     { ";", null_command },
  99     { NULL, invalid_command }

一共的定义了 接近 500 个的 关键字的 数据表

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值