Red (dasturlash tili)
Red — Rebol dasturlash tilining cheklovlarini yengib oʻtish uchun moʻljallangan dasturlash tili. Red 2011-yilda Nenad Rakočević tomonidan kiritilgan hamda bu ham imperativ, ham funksional dasturlash tili sanaladi. Uning sintaksis va umumiy qoʻllanilishi tarjima qilingan Rebol tilining sintaksisiga oʻxshash hisoblanadi.[1]
Hello World![tahrir | manbasini tahrirlash]
Red [Title: „Simple hello world script“]
print „Hello World!“
Faktorial namunalar[tahrir | manbasini tahrirlash]
Red [Title: „A factorial script“] ; Note: The title is optional.
factorial: func [
x [integer!] ; Giving the type of an argument in Red is optional
][
either x = 0 [1][x * factorial x — 1]
]
Red/System [Title: „A factorial script“]
factorial: func [
x [integer!] ; This is compulsory in Red/System
return: [integer!] ; This is compulsory in Red/System
][
either x = 0 [1][x * factorial x — 1]
]
Manbalar[tahrir | manbasini tahrirlash]
- ↑ lucindamichele „0.6.4 Simple GC and Pure Red GUI Console“. — „The main feature for 0.6.4 is what we call the Simple GC (Garbage Collector). A more advanced GC is planned for the future“. Qaraldi: 16-dekabr 2018-yil.
Havolalar[tahrir | manbasini tahrirlash]
![]() |
Vikiomborda Red (dasturlash tili) haqida turkum mavjud |