(104 lines)
1 .\" Manpage for nomsu.2 .\" Contact bruce@bruce-hill.com to correct errors or typos.3 .TH man 8 "9 July 2018" "1.1" "nomsu man page"4 .SH NAME5 nomsu \- run a Nomsu program6 .SH SYNOPSIS7 .B nomsu8 [9 .I options10 ]11 [12 .I nomsu_file13 |14 .I -t tool15 |16 .I -e nomsu_code17 |18 .I nomsu_files... --19 ]20 [21 .I args22 ]23 .SH DESCRIPTION24 \fBnomsu\fR is the compiler/interpreter for the Nomsu programming language.25 .SH INPUT26 .TP27 If an input file is provided, \fBnomsu\fR will run that file.28 .TP29 If "-" is used, \fBnomsu\fR will read from standard input30 .TP31 If no input files are provided, \fBnomsu\fR will run in interactive mode.32 .SH OPTIONS33 .TP34 .BI \-t " tool"35 Run the specified Nomsu tool (one of the tools/*.nom files provided with the compiler).36 .TP37 .BI " file1 file2... --"38 Run multiple files. If a "--" is supplied, any additional arguments will be treated as arguments for the files, rather than additional files.39 .TP40 .BI \-e " code"41 Execute the given nomsu code string.42 .TP43 .BI \-V " version"44 Specify the desired Nomsu version (defaults to the latest installed version). E.g. \fBnomsu -V 1.2\fR or \fBnomsu -V 1.2.5.9\fR45 .TP46 .BI \-L47 List the installed versions of Nomsu (if \fB-V\fR is supplied, only print versions that match the requested pattern).48 .TP49 .BI \-O " optimization"50 Run the compiler with the given optimization level (default: 1). If \fBlevel\fR is >0, use precompiled .lua versions of .nom files, when available.51 .TP52 .B \-v53 Verbose: print compiled lua code as it's generated for the input files.54 .TP55 .B \-c56 Compile the input files into .lua files.57 .TP58 .B \-s59 Check the input files for syntax errors without running them.60 .TP61 .BI \-d " debugger"62 If provided, \fBnomsu\fR will attempt to use the specified debugger to wrap the main body of execution.63 .TP64 .B \--version65 Print the version number and exit.66 .TP67 .B \--no-core68 Run \fBnomsu\fR without running the files in the 'core' directory (this will disable most functionality).69 .TP70 .B \--help71 Print the command line usage.72 .SH EXAMPLES73 .TP74 .B75 nomsu76 Runs nomsu in interactive mode (a read-evaluate-print loop)78 .TP79 .B80 nomsu my_file.nom81 Runs the Nomsu file 'my_file.nom'83 .TP84 .B85 nomsu -t autoformat -i my_file.nom86 Runs the tools/autoformat.nom script with arguments "-i my_file.nom", which will automatically format my_file.nom in-place.88 .TP89 .B90 nomsu -c my_file.nom91 Compiles the Nomsu file 'my_file.nom' into a Lua file called 'my_file.lua'93 .TP94 .B95 nomsu one.nom two.nom three.nom --96 Runs 'one.nom', then 'two.nom', then 'three.nom'.98 .TP99 .B100 nomsu -V 2.3 my_file.nom101 Runs my_file.nom using the latest installed version of Nomsu whose version matches 2.3.*103 .SH AUTHOR104 Bruce Hill (bruce@bruce-hill.com)