QY(1)                       General Commands Manual                      QY(1)



NAME
       qy - alt-python same as alt-js

SYNOPSIS
       qy [-x] [-o outfile] [infile/stdin]
       qy [-hHVsS]

TL_DR
        --- src.qy
        def f(){
        if(1==1){print(10)}
        }

        ~$ qy src.qy  #..or: cat src.qy | qy
        #>> def f():
                 pass
                 if 1==1:
                      print(10)
                 pass
            pass

        --- support-syntax info
        ~$ qy -s | qy
        #>> output sample code


OPTIONS
       -hHV   usage, version

       -s     output sample code

       -S     output detail sample code

       -x     output with debug mode

       -o file
              output dist (dfl:stdout)

DESCRIPTION
       qy is transpiler(==text conv) for c-lang style programmer.
       you can write python code with c-syntax.

       - for(){}, if(){} >>> indent code
       - &&, || >>> 'and' 'or' etc
       - /*...*/  >>> """..."""
       - and other word/syntax conv
       - ignore(fall-through) other syntax == allow mix python raw code

       currently  supports  only  a few syntax. you can add your own rule with
       editing qy(posix-sh) directly.

            (add 'try-except' blockcode)
            ~$ your_editor $(which qy)
            MY_TERM <- ":=" {_0 = "="}    >>>  "eq" { _0 = "=" }

       see 'ped -h' help about peg-grammer. you can also use cpp. see 'qy  -s'
       sample.

EXIT_STATUS
       suc/fail == 0/not0

NOTES
       Python's grammar is inconsistent, and the API is changed with  an idea,
       without any glance. I created 'qy' to save the conscience of  those who
       need to handle Python.

COMPAT
       c compiler(posix-2001+), posix-shell

COPYRIGHT
       Copyright (C) 2022 Momi-g, AGPLv3+

VERSION
       2022-09-29 v1.0.4 (2022-09-27 v1.0.0)

SEE_ALSO
       -



                                                                         QY(1)
