oggy22 / Translator

This is my attempt to create a machine translator from and to multiple natural languages. The method is based on formal (Chomsky) grammars and equivalency rules. The input sentence is parsed into a tree, an equivalent tree is constructed in the target language and traversed to yield the translated text. Currently, I am working on my native Serbian, and English. Future support may include Russian, Spanish and German.
3 stars 0 forks source link

parse switch should use variadic templates #35

Open oggy22 opened 8 years ago

oggy22 commented 8 years ago

In language.h, parse method has switch statement for 1, 2 and 3 length rules. This should be re-written using variadic templates.

oggy22 commented 8 years ago

Probably, it needs to: