This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { Parse and Translate an Expression } | |
| procedure Expression; | |
| begin | |
| Term; | |
| EmitLn('MOVE D0,D1'); | |
| case Look of | |
| '+': Add; | |
| '-': Subtract; | |
| else Expected('Addop'); | |
| end; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| http://www.youtube.com/ | |
| http://www.youtube.com/watch?v=B2ZsdS2s2G0 | |
| http://www.youtube.com/watch?v=psLMm4FRTq8 | |
| http://www.youtube.com/watch?v=1GJENmBJCB8 | |
| http://www.youtube.com/watch?v=CkB6Y5tv5Jk | |
| http://www.youtube.com/watch?v=t68MaJMSAfM | |
| http://www.youtube.com/watch?v=U-Ya5K0pLsY | |
| http://www.youtube.com/watch?v=jKq3FS8TB4s | |
| http://www.youtube.com/watch?v=Et2rhtxHt1E |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module Main where | |
| import AST | |
| import Parser | |
| import Control.Monad.State | |
| import Data.List | |
| import System.IO |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Design my programming Langauge which called Moga | |
| 1- Read About Compilers Design | |
| * Read About Language Design Issus | |
| * Read About Language Design History | |
| * Read About Other Programming Languages Projects | |
| * Read Discussing Topics About Langauge Design | |
| * Read Public Researchs about Programming Langauge Design | |
| * Read About Simple One-Pass Compiler | |
| * Read About Multi-pass compiler |