1 / 5

Using AG tool

Using AG tool. Dr. Ir. I.S.W.B. Prasetya wishnu@cs.uu.nl A. Azurat S.Kom. ade@cs.uu.nl. What is UU_AG ?. UU_AG is Attribute Grammar Tools initiated by Doaitse Swiestra from Utrecht University, currently maintained by : Doaitse Siwestra, Arthur Baars, & Andreas Loh.

Télécharger la présentation

Using AG tool

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Using AG tool Dr. Ir. I.S.W.B. Prasetya wishnu@cs.uu.nl A. Azurat S.Kom. ade@cs.uu.nl

  2. What is UU_AG ? UU_AG is Attribute Grammar Tools initiated by Doaitse Swiestra from Utrecht University, currently maintained by : Doaitse Siwestra, Arthur Baars, & Andreas Loh. UU_AG generates (Possible Lazy) Haskell Code

  3. What is UU_AG for ? UU_AG can be used to generate semantic analyzer → Compiler generator Other Examples : • Type Check and Type Inference • Pretty Printing • Simplifier • Program Transformation • …..

  4. Features • Provide Lazy Code • Reference to the parse tree • Provide Copy rule • Modular and compositional

  5. How to use ? (some important) Command Line Arguments : -d → Generate data type definition -f → Generate semantic function -m → Generate haskell module headers --self → Generate reference to the parse tree -a → Do all options -o file → Specify output file -h → Get usage information AG –a PropAg.ag –o Output1.hs (complete reference see : AGMan.pdf )

More Related