Comment

Comment by skulk

Here is the usage, which shows how many backends this supports (pretty impressive IMO).

    USAGE: waxc [options] code.wax                   
    
    OPTIONS:                                         
    --c     path/out.c     transpile to c            
    --java  path/out.java  transpile to java         
    --ts    path/out.ts    transpile to typescript   
    --py    path/out.py    transpile to python       
    --cs    path/out.cs    transpile to c#           
    --cpp   path/out.cpp   transpile to c++          
    --swift path/out.swift transpile to swift  
    --lua   path/out.lua   transpile to lua 
    --wat   path/out.wat   transpile to webassembly         
    --json  path/out.json  syntax tree to JSON file  
    --tokens               print tokenization        
    --ast                  print abstract syntax tree
    --silent               don't print info          
    --help                 print this message
I do think the syntax is a little bit jarring as someone who is used to LISP's omission of keywords like "then" and "do". Also, LISPers usually don't put parens on their own lines.
parent skulk 5 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton