#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <ctype.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "rs274ngc.hh"
#include "rs274ngc_return.hh"
#include "rs274ngc_interp.hh"
#include "interp_parameter_def.hh"
using namespace interp_param_global;
const int Interp::_gees[] = {
1,-1,-1,-1,-1,-1,-1,-1,-1,-1, 1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
1,-1,-1,-1,-1,-1,-1,-1,-1,-1, 1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
0,-1,-1,-1,-1,-1,-1,-1,-1,-1, 1, 1, 1, 0,-1,-1,-1,-1,-1,-1,
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,15,-1,-1,-1,-1,-1,-1,-1,-1,-1,
15,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
0,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, 2, 2,-1,-1,-1,-1,-1,-1,-1,-1,
2, 2,-1,-1,-1,-1,-1,-1,-1,-1, 2, 2,-1,-1,-1,-1,-1,-1,-1,-1,
6,-1,-1,-1,-1,-1,-1,-1,-1,-1, 6,-1,-1,-1,-1,-1,-1,-1,-1,-1,
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
0, 0,-1,-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,-1,-1,-1,-1,-1,-1,14,-1,-1,-1,-1,-1,-1,-1,-1,-1,
10,-1,-1,-1,-1,-1,-1,-1,-1,-1,10,-1,-1,-1,-1,-1,-1,-1,-1,-1};
const int Interp::_ems[] = {
4, 4, 4, 7, 7, 7, 6, 8, 8, 8, -1, -1, -1, -1, -1, -1, -1, -1, -1, 7, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 4, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 9, 9, 9, 9, 9, 9, -1, -1, -1, -1, -1, -1, 4, 6, 5, 5, 5, 5, 5, 5, 5, -1, 7, 7, 7, 7, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 4, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10};
const int Interp::_required_parameters[] = {
5161, 5162, 5163,
5164, 5165, 5166,
5167, 5168, 5169,
5181, 5182, 5183,
5184, 5185, 5186,
5187, 5188, 5189,
5210,
5211, 5212, 5213,
5214, 5215, 5216,
5217, 5218, 5219,
5220,
5221, 5222, 5223,
5224, 5225, 5226,
5227, 5228, 5229,
5230,
5241, 5242, 5243,
5244, 5245, 5246,
5247, 5248, 5249,
5250,
5261, 5262, 5263,
5264, 5265, 5266,
5267, 5268, 5269,
5270,
5281, 5282, 5283,
5284, 5285, 5286,
5287, 5288, 5289,
5290,
5301, 5302, 5303,
5304, 5305, 5306,
5307, 5308, 5309,
5310,
5321, 5322, 5323,
5324, 5325, 5326,
5327, 5328, 5329,
5330,
5341, 5342, 5343,
5344, 5345, 5346,
5347, 5348, 5349,
5350,
5361, 5362, 5363,
5364, 5365, 5366,
5367, 5368, 5369,
5370,
5381, 5382, 5383,
5384, 5385, 5386,
5387, 5388, 5389,
5390,
RS274NGC_MAX_PARAMETERS
};
const int Interp::_readonly_parameters[] = {
5400, 5401, 5402, 5403, 5404, 5405, 5406, 5407, 5408, 5409, 5410, 5411, 5412, 5413, 5420, 5421, 5422, 5423, 5424, 5425, 5426, 5427, 5428, };
const int Interp::_n_readonly_parameters = sizeof(_readonly_parameters)/sizeof(int);
const read_function_pointer Interp::default_readers[256] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0,
&Interp::read_parameter_setting, &Interp::read_dollar, 0, 0, 0,
&Interp::read_comment, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
&Interp::read_semicolon,
0, 0, 0, 0,
&Interp::read_atsign, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, &Interp::read_carat, 0,
0,
&Interp::read_a, &Interp::read_b, &Interp::read_c, &Interp::read_d, &Interp::read_e, &Interp::read_f, &Interp::read_g, &Interp::read_h, &Interp::read_i, &Interp::read_j, &Interp::read_k, &Interp::read_l, &Interp::read_m, 0, 0,
&Interp::read_p, &Interp::read_q, &Interp::read_r, &Interp::read_s, &Interp::read_t, &Interp::read_u,
&Interp::read_v,
&Interp::read_w,
&Interp::read_x, &Interp::read_y, &Interp::read_z};