Skip to content

Commit f96b2b1

Browse files
Add Lolcode to SCons
1 parent 6ced014 commit f96b2b1

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

SConstruct

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ languages = {
4646
'fortran': 'f90',
4747
'go': 'go',
4848
'julia': 'jl',
49+
'lolcode': 'lol',
4950
'lua': 'lua',
5051
'php': 'php',
5152
'powershell': 'ps1',

sconscripts/lolcode_SConscript

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Import('files_to_compile env')
2+
from pathlib import Path
3+
4+
for file in files_to_compile:
5+
chapter_name = file.parent.parent.parent.stem
6+
env.Copier(f'#/build/lolcode/{chapter_name}.lol', str(file))

0 commit comments

Comments
 (0)