📄 main.c
字号:
/************************************************************
Title: Operator-Precedence Parsing
Author: Dake Song, Class 0201 of Computer Science
Date: Mar.18 of 2005
**************************************************************/
#include "stdio.h"
#include "Parse.h"
#include "Global.h"
/*
Get string from user, and
store the value into the global variable Buff */
void InputString()
{
int len = 0;
printf("The grammar is: ");
printf(GRAMMAR);
printf("\nPlease input any string to parse:\n");
scanf("%s", Buff);
len = strlen(Buff);
Buff[len] = '#';
Buff[len+1] = 0;
}
void main()
{
InputString();
Parse();
getch();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -