Top 1K Features Creators Events Podcasts Books Extensions Interviews Blog Explorer CSV

winxed

< >

winxed is a programming language created in 2009.

#1369on PLDB 15Years Old
Download source code:
git clone https://github.com/NotFound/winxed
Homepage · Source Code

The winxed programming language


Example from the web:
#! winxed # (C) 2010 Julián Albo /* = head1 NAME setup.winxed - Python distutils style =head1 DESCRIPTION Just some testing, not intended for real usage yet. =head1 USAGE Handle with care. See DESCRIPTION. =cut */ $load 'Getopt/Obj.pbc'; //********************************************************************** // Json file read. function loadData(string filename) { var json = load_language('data_json'); var file = open(filename); if (file == null || file.is_closed()) throw Error("Can't open " + filename); file.encoding('utf8'); string jsondata = file.readall(); file.close(); var code = json.compile(jsondata); return code(); } //********************************************************************** function main(argv) { // Parse command line. var getopts = new ['Getopt','Obj']; getopts.notOptStop(1); getopts.push_string('file=s'); getopts.push_string('v'); string progname = argv.shift(); var opts = getopts.get_options(argv); int verbose = opts['v'] != null; var file = opts['file']; // Get setup data from json file specified in command line // or default value. string filename = 'setup.json'; if (file != null) filename = file; var data = loadData(filename); if (verbose) { string description = data['description']; say("\tFile: ", filename); say("\tName: ", data['name']); say("\tDescription: ", description); say("\t(C) ", data['copyright_holder']); say(); } using extern distutils; setup(argv:[flat], data:[flat,named]); } // End

Language features

Feature Supported Example Token
MultiLine Comments ✓ /* A comment */ /* */
Comments ✓ // A comment
Line Comments ✓ // A comment //
Semantic Indentation X

- Build the next great programming language · Add · Issues · About · Search · Keywords · Livestreams · Labs · Resources · Acknowledgements

Built with Scroll v161.0.4