anonymous
  • anonymous
1. Give a grammar that defines the language of simple (non-method) function prototypes in C++. Examples of these would be “int f(int x);”, “void g2(int jim, float x);”, “char abc(void);”. In general, you must have a data type, an identifier, a parameter list which consists of zero or more type/name pairs separated by comma’s., and a terminating semicolon. For data types, you should allow char, int, and float. For identifiers (function and parameter names), you should allow any combination of one or more character, where the the first character must be a letter and all other characters may be a letter or a numeric digit. Only include spaces where they must occur (between types and identifiers).
Computer Science
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
chestercat
  • chestercat
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
anonymous
  • anonymous
what do you mean by "grammar" ?
anonymous
  • anonymous
A grammar is a system that specifies how you can concatenate the character of alphabet T to form a legal string in a language. Formally a grammar contains four parts: N, a non-terminal alphabet T, a terminal alphabet P, a set of rules of production S, the start symbols which is an element N

Looking for something else?

Not the answer you are looking for? Search for more explanations.