about summary refs log tree commit diff stats
path: root/archive
Commit message (Expand)AuthorAgeFilesLines
* 6206Kartik Agaram2020-04-176-115/+66
* 6155Kartik Agaram2020-03-201-1/+3
* 6066 - Vim syntax highlighting for Mu filesKartik Agaram2020-02-281-1/+1
* 5960Kartik Agaram2020-01-301-0/+1
* 5959Kartik Agaram2020-01-301-1/+1
* 5853Kartik Agaram2020-01-013-135/+0
* 5852Kartik Agaram2020-01-01232-3/+3
* 5787Kartik Agaram2019-12-026-18/+262
* 5494Kartik Agaram2019-07-271-0/+11
* 5485 - promote SubX to top-levelKartik Agaram2019-07-27229-0/+80488
880464a7 ^
d9d9ab81 ^
880464a7 ^
099f0d5d ^
880464a7 ^
418ea7d3 ^
880464a7 ^
90538f23 ^
880464a7 ^
90538f23 ^
880464a7 ^
90538f23 ^
23fd294d ^

6488bfcf ^








880464a7 ^
6488bfcf ^
880464a7 ^
90538f23 ^
dff67029 ^
90538f23 ^
880464a7 ^
531f14c9 ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
         

                                                                              
 
      
 
       
 
                                            
 
                                           
 
                                            
 
                                           
 
                                            
 
                                             
 

                                                                             








                                                                               
                                             
 
                                          
 
                                            
 
                                         

              
#!/bin/sh
# Translate given SubX files by running the self-hosted translator natively on
# Linux.

set -e

./build

cat $*          |apps/braces      > a.braces

cat a.braces    |apps/calls       > a.calls

cat a.calls     |apps/sigils      > a.sigils

cat a.sigils    |apps/tests       > a.tests

cat a.tests     |apps/assort      > a.assort

cat a.assort    |apps/dquotes     > a.dquotes

# A little hack. We want translate_subx to always emit identical binaries to
# the C++ translator. The C++ translator assorts segments before it processes
# string literals, so we follow the same order above.
#
# However, dquotes currently emits a separate data segment for string literals.
# So we need to run assort a second time to clean up after it.
#
# Potential solutions:
#   a) modify C++ translator to process string literals before assorting.
#   b) clean up dquotes to assume assorted segments, and append to the
#   existing data segment.
cat a.dquotes   |apps/assort      > a.assort2

cat a.assort2   |apps/pack        > a.pack

cat a.pack      |apps/survey_elf  > a.survey

cat a.survey    |apps/hex         > a.elf

chmod +x a.elf