@@ -18,7 +18,7 @@ SCons.Warnings.warningAsException()
1818copy_builder = Builder (action = Copy ('$TARGET' , '$SOURCE' ))
1919
2020env = Environment (ENV = os .environ ,
21- BUILDERS = {'Copier' : copy_builder },
21+ BUILDERS = {'Copier' : copy_builder },
2222 tools = [
2323 'g++' , 'gas' , 'gcc' , 'gfortran' , 'gnulink' , 'javac' ],
2424 toolpath = ['builders' ])
@@ -38,13 +38,15 @@ available_languages = {
3838 'python' ,
3939 'ruby' ,
4040 'viml' ,
41+ 'racket' ,
4142}
4243
4344languages_to_import = {
4445 'coconut' : ['coconut' ],
4546 'go' : ['go' ],
4647 'rust' : ['rustc' , 'cargo' ],
4748 'kotlin' : ['kotlin' ],
49+ 'racket' : ['racket' ],
4850}
4951
5052for language , tools in languages_to_import .items ():
@@ -89,6 +91,7 @@ languages = {
8991 'ruby' : 'rb' ,
9092 'rust' : 'rs' ,
9193 'viml' : 'vim' ,
94+ 'racket' : 'rkt'
9295}
9396
9497# Do not add new Builders here, add them to the BUILDERS argument in the call to Environment above
@@ -111,7 +114,7 @@ for chapter_dir in contents_path.iterdir():
111114 for code_dir in chapter_dir .glob ('**/code' ):
112115 # For nested chapters e.g. contents/convolutions/1d/
113116 extended_chapter_path = code_dir .relative_to (contents_path ).parent
114-
117+
115118 for language_dir in code_dir .iterdir ():
116119 if (language := language_dir .stem ) in available_languages :
117120 new_files = [FileInformation (path = file_path ,
0 commit comments