Skip to content

Commit

Permalink
updates made in week 7
Browse files Browse the repository at this point in the history
  • Loading branch information
shushrutsharma committed Mar 17, 2021
1 parent c904376 commit 19d123d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 16 deletions.
5 changes: 3 additions & 2 deletions Lab 7/master.cpp → Lab 7/master.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include <bits/stdc++.h>
using namespace std;
#include<stdio.h>
#include<conio.h>
#include<string.h>
struct prodn
{
char p1[10];
Expand Down
Binary file modified Lab 7/master.exe
Binary file not shown.
15 changes: 1 addition & 14 deletions Lab 7/srp.cpp
Original file line number Diff line number Diff line change
@@ -1,24 +1,11 @@
// Including Libraries
#include <bits/stdc++.h>
using namespace std;

// Global Variables
int z = 0, i = 0, j = 0, c = 0;

// Modify array size to increase
// length of string to be parsed
char a[16], ac[20], stk[15], act[10];

// This Function will check whether
// the stack contain a production rule
// which is to be Reduce.
// Rules can be E->2E2 , E->3E3 , E->4
void check()
{
// Coping string to be printed as action
strcpy(ac,"REDUCE TO E -> ");

// c=length of input string

for(z = 0; z < c; z++)
{
// checking for producing rule E->4
Expand Down

0 comments on commit 19d123d

Please sign in to comment.