Click here to Skip to main content
Licence 
First Posted 12 Mar 2006
Views 17,845
Bookmarked 8 times

danish to english translator

By | 12 Mar 2006 | Article
compiler

Introduction

This is the solution for the assignment of John, see problem 2 on this page:http://cs.aaue.dk/contribution/courses/spring2006/f6s/ppar/08pp.htm

This is a cute danish to english translator which is built for the purpose of experience the conception of compiler and practising the programming skill of  compiler-construction.

Maybe it is not a so nice project, but at least it is a workable gadget. If you are interested in it, you could download it and refine it, but pls don't forget to comment for it, or at least let me know where the shortcoming is: )

Hereby I atteched grammar on below, also you can find on John's website.

sentence               -> subject  sentence_verb  | subject  sentence_verb  direct_object
  subject                -> "en" noun | "en" list_of_adjectives noun

  sentence_verb          -> verb
  direct_object          -> preposition "en" noun
  list_of_adjectives     -> adjective | adjective "," list_of_adjectives
  adjective              -> "pæn" | "tyk" | "umotiveret" | "grøn" | "klog"
  noun                   -> "studerende" | "traktor" | "bolig" | "lærer" | "kompostbeholder" |
                            "lektion" | "vej"
  verb                   -> "vil" | "underviser" | "sover" | "kører"
  preposition            -> "under" | "på" | "mellem" | "i"

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

caoqi



Denmark Denmark

Member



Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
Generalcrap PinmemberDarka22:18 12 Mar '06  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web04 | 2.5.120517.1 | Last Updated 12 Mar 2006
Article Copyright 2006 by caoqi
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid