22 grudnia 2008 @ 12:09 po południu 

Postanowiłem napisać konwerter mojego jezyka do vb.net. Potem mój programik kompiluje vb.net i tak wychodzi gotowy program! Oto przykładowy kod w moim jezyku:

pack Program
 procedure main()
  define hello:string
  print "Podaj swoje imie:"
  read hello
  printline "**********"
   if hello != ""
    printline "Witaj, " & hello
   end if
 end procedure
end pack

Wbrew pozorom napisanie konwertera nie jest takie trudne, tylko trzeba czasu(2-3 tygodnie:))
i chęci.
Zobaczmy model objektowy:

private class Zwierze
 public Imie:string
 public IleLat:integer
end class
class Pies
 extends Zwierze
end class
#Definicja Objektu
define mojZwierzak:Pies
equiv mojZwierzak.Imie "Bruno"
equiv mojZwierzak.IleLat 5

Czekam na komentarze…

Tags Categories: Bez kategorii Posted By: admin
Last Edit: 22 grudnia 2008 @ 12 09 po południu

E-mailPermalinkComments (0)

\/ More Options ...
Change Theme...
  • Users » 1
  • Posts/Pages » 2
  • Comments » 0
Change Theme...
  • VoidVoid
  • LifeLife « Default
  • EarthEarth
  • WindWind
  • WaterWater
  • FireFire
  • LiteLight
  • No Child Pages.