Dcspm develop and Compile Subset of pascal language to msil



Yüklə 1,28 Mb.
səhifə4/4
tarix07.11.2018
ölçüsü1,28 Mb.
#78911
1   2   3   4

References





  1. http://msdn.microsoft.com/en-us/library/c5tkafs1(v=vs.71).aspx

  2. C# To Program By H.M Deitel & P.J.Deitel& J.Listfield & T.R. Nieto & C.Yaeger & M.Zlatkina.

  3. Compiler Construction principles and practice by Kennth C.louden

  4. Data Structure using Java By D.S.Malik & P.S.Nair.

  5. An introduction to formal languages and automata. Fourth Edition.  Peter Linz

  6. Compilers Principles, Techniques and Tools by Alfred V.Aho, Ravi Sethi and Jeffrey D. Ullman. 1985

  7. Develop a Compiler in Java for a Compiler Design Course Abdul Sattar and Torben Lorenzen

  8. Guide to assembly language [electronic resource] : a concise introduction / James T. Streib.Streib, James T. London ; New York : Springer, c2011.

  9. Using a Stack Assembler Language in a Compiler Course by Dr. Gerald Wildenberg St . John Fisher College, Rochester, NY Bristol Polytechnic, England (1989-1990 )

  10. Expert .NET 2. IL assembler/ Serge Lidin. Lidin, Serge. 1956- Berkeley, CA

  11. http://www.codeproject.com/Articles/3778/Introduction-to-IL-Assembly-Language

  12. http://msdn.microsoft.com/en-us/library/ht8ecch6(v=vs.71)
  13. Pro C# 2008 and the .NET 3.5 Platform, Fourth Edition


  14. http://www.codeguru.com/csharp/.net/net_general/il/article.php/c4635/MSIL-Tutorial.htm

  15. http://en.wikipedia.org/wiki/Pascal_(programming_language)

  16. http://pages.cs.wisc.edu/~fischer/cs536.s08/lectures/Lecture02.4up.pdf

  17. http://msdn.microsoft.com/en-us/library/system.collections.arraylist.aspx

  18. http://msdn.microsoft.com/en-us/library/kx37x362.aspx

  19. http://en.wikipedia.org/wiki/Microsoft_Visual_Studio_Express#Visual_C.23_Express

  20. http://dll-repair-tools.com/dll-files/fusiondll-the-assembly-manager

  21. http://www.learnvisualstudio.net/start-here/lesson-1-1-installing-visual-c-2010-express-edition/)

  22. http://www.seas.gwu.edu/~hchoi/teaching/cs160d/pascal.pdf

  23. http://geekswithblogs.net/BlackRabbitCoder/archive/2011/06/16/c.net-fundamentals-choosing-the-right-collection-class.aspx

  24. http://www.dotnetperls.com/arraylist


Appendix A:



  • Installing Visual C# 2010 Express Edition. [21]


Step1 – Navigating to the Microsoft website.



step 1 - navigating to the microsoft website.

Launch your favorite web browser (IE, Firefox etc).

(1) Navigate to www.Microsoft.com/express/express-2010

(2) Select the Visual C# Express link. Scroll about halfway down the page and click the Microsoft C# Express link; this will take you to the download page.

NOTE:
Microsoft is not going to distribute a release candidate for the Express Edition tools, but when Visual Studio 2010 is officially released we’ll update any lessons, like this one, that would be affected by the change of location or any UI changes. We’ve been assured by our friends at Microsoft that the Beta 2 that we’re about to work with and the final release will be nearly identical as far as the Express Editions are concerned.

Step 2: Download the appropriate software.step 2: download the appropriate software.


(1) Select Visual C# to expand the options.

(2) Select your language of your choice and click the purple "Free Download" button and save it to your downloads folder on Windows 7.



Step 3: Locating the downloaded software on your computer.



step 3: locating the downloaded software on your computer.

Once that’s finished, close everything down.

(1) Open Windows Explorer. Go to the downloads directory.

(2) Double-click on the vcs_web.exe file.



(3) When you get the user account control questions, select "yes".

Step 4: Installing the software.


step 4: installing the software.


After a moment or two we’ll see the usual installation screens for an application. After clicking "next" and agreeing to the license terms, then we want to make sure to install the optional Microsoft SQL Server express edition service pack one. And a few things to note on this particular screen: First of all, since this is a Beta we’ll leave everything set to the default option. There aren’t any known issues regarding the installer for Visual C# 2010 Express, but experience has shown this to be a best practice. Also, be forewarned that what you downloaded a few moments ago was just a kind of a bootstrap. What it’ll go out and do now is download all of the bits that you need based on the selections that you made. So the complete download is 238 MBs, and it’s a very long download. Click "install". About halfway through we’ll be prompted to restart our computer; we’ll talk about that in just a moment.

Step 5: The computer restart.



step 5: the computer restart.

bout midway into the install we’re prompted to reboot; and this is because the .net framework run time 4.0 beta-2 needs to be installed. This is a piece of software that’s foundational. Everything that we’ll write as an application will build off of this runtime; we’ll discuss this more later on in the series. For right now, click the ‘restart now’ and as our machine reboots it will look similar to a Windows update.

Step 6: Post-restart software installation.




step 6: post-restart software installation.

Once the computer restarts the installation will continue automatically. We needed to reboot because the .net runtime touches so many parts of the operating system and because Visual C# 2010 Express Edition is built on that framework itself, so it needed to have that in place before it could be installed. We’re about halfway through the install this point.

Step 7: Software installation confirmation.



step 7: software installation confirmation.
At this point we have a successful install. If you didn’t see this screen and you encountered some sort of error message, in a separate lesson we’ll demonstrate how to submit a bug report to Microsoft as well as how to find solutions to your installation problems. Microsoft wants to hear about any installation issues that you may have had, so it’s important that you contribute in that way.

Step 8: Navigating to the newly-installed software.



step 8: navigating to the newly-installed software.

That completes the installation. To verify:

(1) Go to the start menu on Windows

(2) Click the new icon "Microsoft Visual C# 2010 Express".



Step 09: The Visual Studio IDE.



step 09: the visual studio ide.
The first time it runs it needs to set up a few things with regards to the environment that it’s running in; screen resolution, keyboard settings, things of that nature. This interface will become ingrained within your mind over the course of the lessons – but this is a great start.

 


Appendix B:
PASCAL Grammar BNF. [22]

<program::=

Program <identifier; <block.




<block::=

<variable declaration part
<procedure declaration part
<statement part>

variable declaration part::=

<empty> | 
var <variable declaration; 
    { <variable declaration; }




<variable declaration::=

<identifier > { , <identifier> } : <type>




<type::=

<simple type>


<simple type::=

<type identifier>




<type identifier::=

<identifier>




<statement part::=

<compound statement>




<compound statement::=

begin <statement>{ ; <statement> } end




<statement::=

<simple statement> | <structured statement>




<simple statement::=

<assignment statement> | 
<read statement> | <write statement>| <if statement> | <for statement>




<assignment statement::=

<variable:= <expression>


<read statement::=

read ( <input variable> { , <input variable> } )




<input variable::=

<variable>




<write statement::=

write ( <output value> { , <output value> } )




<output value::=

<expression>




<structured statement::=

<compound statement> | <if statement> | 
<while statement>




<if statement::=

if <expressionthen <statement> | 
if <expressionthen <statementelse <statement>




<while statement::=

while <expressiondo <statement>

<for statement> ::= for <variable identifier > ::= <expression> to <expression> do < statement>


<expression::=

<simple expression> | 
<simple expression> <relational operator> <simple expression>




<simple expression::=

<sign> <term> { <adding operator> <term> }




<term::=

<factor> { <multiplying operator> <factor> }




<factor::=

<variable> | ( <expression) 




<relational operator::=

= | <> | < | <= | >= | >



<adding operator::=

+ | - 




<multiplying operator::=

* | /




<variable::=

<entire variable>


<entire variable::=

<variable identifier>




<variable identifier::=

<identifier>




<identifier::=

<letter> { <letter or digit> }




<letter or digit::=

<letter> | <digit>




<integer constant::=

<digit> { <digit> }




<character constant::=

'< any character other than ' >'  |  ''''




<letter::=

a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | 
p | q | r | s | t | u | v | w | x | y | z | A | B | C | 
D | E | F | G | H | I | J | K | L | M | N | O | P 
| Q | R | S | T | U | V | W | X | Y | Z




<digit::=

0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9




<special symbol::=

+ | - | * | = | <> | < | > | <= | >= | 
( | ) | := | . | , | ; | :  | if | then | else | of | while | do | 
begin | end | read | write | var |  | program | switch| for | to




<predefined identifier::=

integer | Boolean



Yüklə 1,28 Mb.

Dostları ilə paylaş:
1   2   3   4




Verilənlər bazası müəlliflik hüququ ilə müdafiə olunur ©www.genderi.org 2024
rəhbərliyinə müraciət

    Ana səhifə