answersLogoWhite

0

%{

#include<stdio.h>

int valid=1;

%}

%token digit letter

%%

start : letter s

s : letter s

| digit s

|

;

%%

int yyerror()

{

printf("\nIts not a identifier!\n");

valid=0;

return 0;

}

int main()

{

printf("\nEnter a name to tested for identifier ");

yyparse();

if(valid)

{

printf("\nIt is a identifier!\n");

}

}

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

C plus plus program to add a letter in a permanent letters alphabetically?

If by permanent you mean constant, you cannot change something that is constant, therefore you cannot add to it (letters or otherwise). It has to be variable. Constant and variable are mutually exclusive terms.


Program will be followed by dinner or shall be followed by dinner?

The program shall be followed by dinner.


What does a constant look like?

A constant is a variable whose value does not change during the program's execution. Constants are usually written in uppercase letters with underscores separating words and their value remains fixed throughout the program.


How can a reassigned local variable impact the functionality of a program?

When a local variable is reassigned in a program, it can impact the functionality by changing the value that the variable holds. This can lead to unexpected behavior or errors in the program if the reassigned value is not properly accounted for in the code. It is important to carefully manage variable assignments to ensure the program functions as intended.


If the variable flag can only be declared once in the program it was declared as what type of variable?

It's a global variable.


What is a variable used in computer gaming?

it depends, if its a desired variable, its a program, but if its undesired, its a glitch


How do you program a hayward variable speed pool pump?

how to program a pool vacuum


A variable that is used in all program modules is?

global


When auto variable create?

Program enter function.


What is the variable in c language program?

A variable is the name for a place in the computer's memory where you store some data.


What is the name of the variable that stays the same?

A constant is a variable that doesn't change in value throughout the program's execution.


Which specifier indicates that a variable's reserved space in the memory can be erased or relocated when the variable is out of its scope?

There is no such thing. When the program leaves the scope of the variable, it will be release the memory of the variable automatically and unconditonally.