annotate harelet.c @ 7:1bb981516d87

Automated Vimcurial commmit
author VilyaemKenyaz
date Sat, 09 Sep 2023 17:11:20 -0400
parents ec82c868b8b0
children c60e4315cb7e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
1 /*********************************************
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
2 * Description - Harelet is a CAD and compiler program for CNC milling machines
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
3 * Author - William King
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
4 * Date - Sep 08 2023
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
5 * *******************************************/
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
6
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
7 #include <stdio.h>
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
8 #include <stdlib.h>
4
0ed615367b10 Automated Vimcurial commmit
VilyaemKenyaz
parents: 3
diff changeset
9 #include <string.h>
1
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
10 #include "basedfilelib.h"
7
1bb981516d87 Automated Vimcurial commmit
VilyaemKenyaz
parents: 6
diff changeset
11
1bb981516d87 Automated Vimcurial commmit
VilyaemKenyaz
parents: 6
diff changeset
12 #ifdef __linux__
1bb981516d87 Automated Vimcurial commmit
VilyaemKenyaz
parents: 6
diff changeset
13 #include "linuxconio.h"
1bb981516d87 Automated Vimcurial commmit
VilyaemKenyaz
parents: 6
diff changeset
14 #endif
1bb981516d87 Automated Vimcurial commmit
VilyaemKenyaz
parents: 6
diff changeset
15
1bb981516d87 Automated Vimcurial commmit
VilyaemKenyaz
parents: 6
diff changeset
16 #ifdef _WIN32
1bb981516d87 Automated Vimcurial commmit
VilyaemKenyaz
parents: 6
diff changeset
17 #include <Windows.h>>
1bb981516d87 Automated Vimcurial commmit
VilyaemKenyaz
parents: 6
diff changeset
18 #include <conio.h>
1bb981516d87 Automated Vimcurial commmit
VilyaemKenyaz
parents: 6
diff changeset
19 #endif
1
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
20
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
21 #define DEEPNESS 5
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
22 #define MAXPOINT 4096
2
1b0ebe86b44c Automated Vimcurial commmit
VilyaemKenyaz
parents: 1
diff changeset
23 #define UNITS "G20"
1b0ebe86b44c Automated Vimcurial commmit
VilyaemKenyaz
parents: 1
diff changeset
24 #define SPEED 20
1
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
25
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
26 typedef struct{
6
ec82c868b8b0 Automated Vimcurial commmit
VilyaemKenyaz
parents: 5
diff changeset
27 unsigned int X;
ec82c868b8b0 Automated Vimcurial commmit
VilyaemKenyaz
parents: 5
diff changeset
28 unsigned int Y;
ec82c868b8b0 Automated Vimcurial commmit
VilyaemKenyaz
parents: 5
diff changeset
29 unsigned int down;
1
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
30 }point;
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
31
4
0ed615367b10 Automated Vimcurial commmit
VilyaemKenyaz
parents: 3
diff changeset
32 point points[MAXPOINT];
1
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
33
5
3879c1178448 Automated Vimcurial commmit
VilyaemKenyaz
parents: 4
diff changeset
34 unsigned int X = 0;
6
ec82c868b8b0 Automated Vimcurial commmit
VilyaemKenyaz
parents: 5
diff changeset
35 unsigned int Y = 0;
ec82c868b8b0 Automated Vimcurial commmit
VilyaemKenyaz
parents: 5
diff changeset
36 unsigned int step = 5;
5
3879c1178448 Automated Vimcurial commmit
VilyaemKenyaz
parents: 4
diff changeset
37 unsigned int down = 0;
3879c1178448 Automated Vimcurial commmit
VilyaemKenyaz
parents: 4
diff changeset
38 unsigned int numpoints = 0;
1
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
39 char action;
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
40
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
41 /*********************************************
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
42 * Description - Renders the screen
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
43 * Author - William King
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
44 * Date - Sep 08 2023
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
45 * *******************************************/
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
46 void Render(){
7
1bb981516d87 Automated Vimcurial commmit
VilyaemKenyaz
parents: 6
diff changeset
47 clrscr();
1bb981516d87 Automated Vimcurial commmit
VilyaemKenyaz
parents: 6
diff changeset
48 gotoxy(0,0);
6
ec82c868b8b0 Automated Vimcurial commmit
VilyaemKenyaz
parents: 5
diff changeset
49 puts("HARELET A CAD PROGRAM BY VILYAEM KENYAZ, PEEP SOFTWARE 2023");
ec82c868b8b0 Automated Vimcurial commmit
VilyaemKenyaz
parents: 5
diff changeset
50 printf("Number of Points: %d X: %d Y: %d STEPSIZE: %d DWN?: %d\n",numpoints,X,Y,step,down);
ec82c868b8b0 Automated Vimcurial commmit
VilyaemKenyaz
parents: 5
diff changeset
51
5
3879c1178448 Automated Vimcurial commmit
VilyaemKenyaz
parents: 4
diff changeset
52 //Render points
1
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
53 for(int i = 0;i != MAXPOINT;i++){
7
1bb981516d87 Automated Vimcurial commmit
VilyaemKenyaz
parents: 6
diff changeset
54 gotoxy(0,10);
1bb981516d87 Automated Vimcurial commmit
VilyaemKenyaz
parents: 6
diff changeset
55 /*
1
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
56 //Move X
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
57 for(int j = 0;j != points[i].X;j++){
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
58
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
59 printf("");
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
60
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
61 }
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
62
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
63 //Move Y
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
64 for(int k = 0;k != points[i].Y;k++){
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
65
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
66 puts("");
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
67
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
68
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
69 }
7
1bb981516d87 Automated Vimcurial commmit
VilyaemKenyaz
parents: 6
diff changeset
70 */
1bb981516d87 Automated Vimcurial commmit
VilyaemKenyaz
parents: 6
diff changeset
71
1bb981516d87 Automated Vimcurial commmit
VilyaemKenyaz
parents: 6
diff changeset
72 gotoxy(points[i].X,points[i].Y);
1bb981516d87 Automated Vimcurial commmit
VilyaemKenyaz
parents: 6
diff changeset
73
5
3879c1178448 Automated Vimcurial commmit
VilyaemKenyaz
parents: 4
diff changeset
74 if(points[i].down == 0){
3879c1178448 Automated Vimcurial commmit
VilyaemKenyaz
parents: 4
diff changeset
75 puts("X");
3879c1178448 Automated Vimcurial commmit
VilyaemKenyaz
parents: 4
diff changeset
76 }
3879c1178448 Automated Vimcurial commmit
VilyaemKenyaz
parents: 4
diff changeset
77 else{
3879c1178448 Automated Vimcurial commmit
VilyaemKenyaz
parents: 4
diff changeset
78 puts("*");
3879c1178448 Automated Vimcurial commmit
VilyaemKenyaz
parents: 4
diff changeset
79 }
1
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
80
7
1bb981516d87 Automated Vimcurial commmit
VilyaemKenyaz
parents: 6
diff changeset
81
1
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
82 }
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
83
5
3879c1178448 Automated Vimcurial commmit
VilyaemKenyaz
parents: 4
diff changeset
84 //Render cursor
7
1bb981516d87 Automated Vimcurial commmit
VilyaemKenyaz
parents: 6
diff changeset
85 /*
5
3879c1178448 Automated Vimcurial commmit
VilyaemKenyaz
parents: 4
diff changeset
86 DocTop();
3879c1178448 Automated Vimcurial commmit
VilyaemKenyaz
parents: 4
diff changeset
87 for(int i = 0;i != X;i++){
3879c1178448 Automated Vimcurial commmit
VilyaemKenyaz
parents: 4
diff changeset
88 printf("");
3879c1178448 Automated Vimcurial commmit
VilyaemKenyaz
parents: 4
diff changeset
89
3879c1178448 Automated Vimcurial commmit
VilyaemKenyaz
parents: 4
diff changeset
90 }
3879c1178448 Automated Vimcurial commmit
VilyaemKenyaz
parents: 4
diff changeset
91 for(int i = 0;i != Y;i++){
3879c1178448 Automated Vimcurial commmit
VilyaemKenyaz
parents: 4
diff changeset
92 puts("");
3879c1178448 Automated Vimcurial commmit
VilyaemKenyaz
parents: 4
diff changeset
93 }
7
1bb981516d87 Automated Vimcurial commmit
VilyaemKenyaz
parents: 6
diff changeset
94 */
1bb981516d87 Automated Vimcurial commmit
VilyaemKenyaz
parents: 6
diff changeset
95
1bb981516d87 Automated Vimcurial commmit
VilyaemKenyaz
parents: 6
diff changeset
96 gotoxy(X,Y);
1bb981516d87 Automated Vimcurial commmit
VilyaemKenyaz
parents: 6
diff changeset
97
5
3879c1178448 Automated Vimcurial commmit
VilyaemKenyaz
parents: 4
diff changeset
98 puts("&");
3879c1178448 Automated Vimcurial commmit
VilyaemKenyaz
parents: 4
diff changeset
99
3879c1178448 Automated Vimcurial commmit
VilyaemKenyaz
parents: 4
diff changeset
100
1
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
101
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
102 }
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
103
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
104 /*********************************************
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
105 * Description - This function compiles instructions for CNC machines.
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
106 * Author - William King
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
107 * Date - Sep 08 2023
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
108 * *******************************************/
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
109 void Compile(){
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
110 char * filename;
2
1b0ebe86b44c Automated Vimcurial commmit
VilyaemKenyaz
parents: 1
diff changeset
111 char * file;
1
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
112 int choice;
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
113
6
ec82c868b8b0 Automated Vimcurial commmit
VilyaemKenyaz
parents: 5
diff changeset
114 puts("Select your format\n1. RAW GCODE");
1
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
115 scanf("%d",&choice);
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
116
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
117
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
118 puts("Enter the filename");
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
119 scanf("%s",filename);
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
120
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
121 if(choice == 1){
2
1b0ebe86b44c Automated Vimcurial commmit
VilyaemKenyaz
parents: 1
diff changeset
122 //Set the miller
1b0ebe86b44c Automated Vimcurial commmit
VilyaemKenyaz
parents: 1
diff changeset
123 strcat(file,UNITS);
6
ec82c868b8b0 Automated Vimcurial commmit
VilyaemKenyaz
parents: 5
diff changeset
124 strcat(file,"G0 X0 Y0 Z0");
2
1b0ebe86b44c Automated Vimcurial commmit
VilyaemKenyaz
parents: 1
diff changeset
125 //Meat of instructions
1b0ebe86b44c Automated Vimcurial commmit
VilyaemKenyaz
parents: 1
diff changeset
126 for(int i = 0;i != numpoints;i++){
4
0ed615367b10 Automated Vimcurial commmit
VilyaemKenyaz
parents: 3
diff changeset
127 //Compose
0ed615367b10 Automated Vimcurial commmit
VilyaemKenyaz
parents: 3
diff changeset
128 char * instruction;
0ed615367b10 Automated Vimcurial commmit
VilyaemKenyaz
parents: 3
diff changeset
129 strcat(instruction,"G0 X");
6
ec82c868b8b0 Automated Vimcurial commmit
VilyaemKenyaz
parents: 5
diff changeset
130 strcat(instruction,itoa(points[i].X));
4
0ed615367b10 Automated Vimcurial commmit
VilyaemKenyaz
parents: 3
diff changeset
131 strcat(instruction," Y");
6
ec82c868b8b0 Automated Vimcurial commmit
VilyaemKenyaz
parents: 5
diff changeset
132 strcat(instruction,itoa(points[i].Y));
4
0ed615367b10 Automated Vimcurial commmit
VilyaemKenyaz
parents: 3
diff changeset
133 strcat(instruction," Z");
6
ec82c868b8b0 Automated Vimcurial commmit
VilyaemKenyaz
parents: 5
diff changeset
134 strcat(instruction,itoa(DEEPNESS));
4
0ed615367b10 Automated Vimcurial commmit
VilyaemKenyaz
parents: 3
diff changeset
135 //Write to string
0ed615367b10 Automated Vimcurial commmit
VilyaemKenyaz
parents: 3
diff changeset
136 strcat(file,instruction);
2
1b0ebe86b44c Automated Vimcurial commmit
VilyaemKenyaz
parents: 1
diff changeset
137 }
1b0ebe86b44c Automated Vimcurial commmit
VilyaemKenyaz
parents: 1
diff changeset
138 //Finish
1b0ebe86b44c Automated Vimcurial commmit
VilyaemKenyaz
parents: 1
diff changeset
139 strcat(file,"G0, X0, Y0, Z0");
1b0ebe86b44c Automated Vimcurial commmit
VilyaemKenyaz
parents: 1
diff changeset
140 WriteFile(filename,file);
1
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
141 }
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
142
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
143 puts("Finished Compiling");
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
144
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
145 }
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
146
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
147
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
148 /*********************************************
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
149 * Description - Main function
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
150 * Author - William King
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
151 * Date - Sep 08 2023
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
152 * *******************************************/
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
153 void main(int argc, char* argv[]){
5
3879c1178448 Automated Vimcurial commmit
VilyaemKenyaz
parents: 4
diff changeset
154 while(1){
3879c1178448 Automated Vimcurial commmit
VilyaemKenyaz
parents: 4
diff changeset
155 Render();
1
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
156 scanf("%c",&action);
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
157 switch(action){
2
1b0ebe86b44c Automated Vimcurial commmit
VilyaemKenyaz
parents: 1
diff changeset
158 case 'a': points[numpoints].X = X;
1b0ebe86b44c Automated Vimcurial commmit
VilyaemKenyaz
parents: 1
diff changeset
159 points[numpoints].Y = Y;
1b0ebe86b44c Automated Vimcurial commmit
VilyaemKenyaz
parents: 1
diff changeset
160 points[numpoints].down = down;
1b0ebe86b44c Automated Vimcurial commmit
VilyaemKenyaz
parents: 1
diff changeset
161 numpoints++;
1b0ebe86b44c Automated Vimcurial commmit
VilyaemKenyaz
parents: 1
diff changeset
162 break;
1b0ebe86b44c Automated Vimcurial commmit
VilyaemKenyaz
parents: 1
diff changeset
163 case 'h':
6
ec82c868b8b0 Automated Vimcurial commmit
VilyaemKenyaz
parents: 5
diff changeset
164
ec82c868b8b0 Automated Vimcurial commmit
VilyaemKenyaz
parents: 5
diff changeset
165 if(X < 200 - step){
ec82c868b8b0 Automated Vimcurial commmit
VilyaemKenyaz
parents: 5
diff changeset
166 X += step;
ec82c868b8b0 Automated Vimcurial commmit
VilyaemKenyaz
parents: 5
diff changeset
167 }
2
1b0ebe86b44c Automated Vimcurial commmit
VilyaemKenyaz
parents: 1
diff changeset
168 break;
1b0ebe86b44c Automated Vimcurial commmit
VilyaemKenyaz
parents: 1
diff changeset
169 case 'j':
6
ec82c868b8b0 Automated Vimcurial commmit
VilyaemKenyaz
parents: 5
diff changeset
170 if(X > step){
ec82c868b8b0 Automated Vimcurial commmit
VilyaemKenyaz
parents: 5
diff changeset
171 Y += step;
ec82c868b8b0 Automated Vimcurial commmit
VilyaemKenyaz
parents: 5
diff changeset
172 }
1
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
173 break;
2
1b0ebe86b44c Automated Vimcurial commmit
VilyaemKenyaz
parents: 1
diff changeset
174 case 'k':
6
ec82c868b8b0 Automated Vimcurial commmit
VilyaemKenyaz
parents: 5
diff changeset
175 if(Y < 0){
ec82c868b8b0 Automated Vimcurial commmit
VilyaemKenyaz
parents: 5
diff changeset
176 Y -= step;
ec82c868b8b0 Automated Vimcurial commmit
VilyaemKenyaz
parents: 5
diff changeset
177 }
2
1b0ebe86b44c Automated Vimcurial commmit
VilyaemKenyaz
parents: 1
diff changeset
178 break;
1b0ebe86b44c Automated Vimcurial commmit
VilyaemKenyaz
parents: 1
diff changeset
179 case 'l':
6
ec82c868b8b0 Automated Vimcurial commmit
VilyaemKenyaz
parents: 5
diff changeset
180 if(Y > 200){
ec82c868b8b0 Automated Vimcurial commmit
VilyaemKenyaz
parents: 5
diff changeset
181 X -= step;
ec82c868b8b0 Automated Vimcurial commmit
VilyaemKenyaz
parents: 5
diff changeset
182 }
1
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
183 break;
2
1b0ebe86b44c Automated Vimcurial commmit
VilyaemKenyaz
parents: 1
diff changeset
184
1b0ebe86b44c Automated Vimcurial commmit
VilyaemKenyaz
parents: 1
diff changeset
185 case 's':
1b0ebe86b44c Automated Vimcurial commmit
VilyaemKenyaz
parents: 1
diff changeset
186 puts("Enter new step:");
1b0ebe86b44c Automated Vimcurial commmit
VilyaemKenyaz
parents: 1
diff changeset
187 scanf("%d",&step);
1b0ebe86b44c Automated Vimcurial commmit
VilyaemKenyaz
parents: 1
diff changeset
188 break;
4
0ed615367b10 Automated Vimcurial commmit
VilyaemKenyaz
parents: 3
diff changeset
189
0ed615367b10 Automated Vimcurial commmit
VilyaemKenyaz
parents: 3
diff changeset
190 case 'c': Compile();
0ed615367b10 Automated Vimcurial commmit
VilyaemKenyaz
parents: 3
diff changeset
191 break;
2
1b0ebe86b44c Automated Vimcurial commmit
VilyaemKenyaz
parents: 1
diff changeset
192 default:
1
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
193 break;
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
194 }
5
3879c1178448 Automated Vimcurial commmit
VilyaemKenyaz
parents: 4
diff changeset
195 }
3879c1178448 Automated Vimcurial commmit
VilyaemKenyaz
parents: 4
diff changeset
196
1
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
197 exit(0);
47e1b1039d7b Automated Vimcurial commmit
VilyaemKenyaz
parents: 0
diff changeset
198 }