Welcome to my Code Snippets

MyCodeSnippets.Space

include

ReAdABLE Source (What is the ReAdABLE Human Format?)

http://mycodesnippets.space/redlang/include.red

Zip file

https://i.imgur.com/Uviyf9H.png

flowchart.red


Red [
    Title: "flowchart.red"
]

print "in flowchart.red: do %lib/shapes.red" ; don't use do read %lib/shapes.red or path won't work
do %lib/shapes.red
        

%test/test.red


Red [
    Title: "%test/test.red"
]

do %../flowchart.red
        

%lib/shapes.red


Red [
    Title: "%lib/shapes.red"
]

print {in shapes.red:
#include %includes/rectangle.red
#include %includes/circle.red
}
#include %includes/rectangle.red
#include %includes/circle.red
        

%lib/includes/circle.red


Red [
    Title: "circle.red"
]

print "in circle."
        

%lib/includes/rectangle.red


Red [
    Title: "%lib/includes/rectangle.red"
]

print "in rectangle."