C program Syntax (no left recursion)

Source: Internet
Author: User

< procedures >-〉< External declarations > | < function definition >
< external declarations >-〉< header Files > | < variables > | < structural body >
< header file >-〉 #include < file name >
< filename >-〉stdio.h 丨 stdlib.h 丨 string.h
< struct >-〉< struct declaration 〉|< variable >
< struct declarations >-〉struct< identifiers >
< function definition >-〉< type description >< identifier >< parameter list >< Compound statement >
< parameter list 〉-〉< type description >< variable name >
< compound statements >-〉< variables >|< Statements >|< compound statements >|&
< statements >-〉< expression statements 〉|< SELECT statements >|< loop statements >|< jump statements >|< statements >|&
< expression statements >-〉< assignment expressions >|< relational Expressions >|< logical Expressions >|< expression statements >|&
< Assignment expression >-〉=a/a=
A-> &|+|-
< relationship expression >->〉| < | 〉=| <=
< Logical Expressions >-〉+ | - | * | /
< SELECT statement >-〉if Else Statement |switch statement |< SELECT statement >|&
< loop statement >-〉for statement |while statement |do while statement |< Loop statement >|&
< SKIP statement >-> return statement |break statement |continue statement
< variables >-> < types > 丨 < identifiers > 丨 < variable values >
< type description >-> int 丨 char 丨 double 丨 float 丨 long
< variable values >-> < letters > 丨 numbers
< identifier >〈==〉s
S-> AS1
S1-> s1s2
S2-> a| b|&
A-> a|b|c|......y|z
B-> 0|1|2|3|4|5|6|7|8| 9
< letters >-> A|b|c|......y|z
< digital >〈==〉s
S-> AS1
S1-> S1AS2
S2-> &|0
A-> 1|2|3|4|5|6|7|8| 9

C program Syntax (no left recursion)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.