Our website uses cookies to enhance your browsing experience.
Accept
to the top
close form

Fill out the form in 2 simple steps below:

Your contact information:

Step 1
Congratulations! This is your promo code!

Desired license type:

Step 2
Team license
Enterprise license
** By clicking this button you agree to our Privacy Policy statement
close form
Request our prices
New License
License Renewal
--Select currency--
USD
EUR
* By clicking this button you agree to our Privacy Policy statement

close form
Free PVS‑Studio license for Microsoft MVP specialists
* By clicking this button you agree to our Privacy Policy statement

close form
To get the licence for your open-source project, please fill out this form
* By clicking this button you agree to our Privacy Policy statement

close form
I am interested to try it on the platforms:
* By clicking this button you agree to our Privacy Policy statement

close form
check circle
Message submitted.

Your message has been sent. We will email you at


If you haven't received our response, please do the following:
check your Spam/Junk folder and click the "Not Spam" button for our message.
This way, you won't miss messages from our team in the future.

>
>
>
Parsing (syntax analysis)

Parsing (syntax analysis)

Mar 31 2013

Parsing (syntax analysis) is the process of correlating the line sequence of lexemes (words) of the programming language with its formal grammar. The result of this is usually a parse tree or an abstract syntactical tree. Context-free grammar is used to analyze the syntax of computer languages. This is because the grammar of more general types in Chomsky's hierarchy (context-sensitive and, even more so, unrestricted) is much more difficult analyze. Moreover, the simpler grammar (regular grammar) does not allow you to describe the embedded programming language constructs and thus is not expressive enough. Methods of syntax analysis can be divided into two large classes: ascending and descending — according to the order of building the parse tree. Descending methods (top-down methods) begin with the grammar rule defining the purpose of analysis from the parse tree root. They try to develop it so that the following tree nodes correspond to the syntax of the sentence being analyzed. Ascending methods (bottom-up methods) start from the final nodes of the parse tree and try to unite them by building nodes of higher and higher levels until the tree root is reached.

References

Popular related articles


Comments (0)

Next comments next comments
close comment form