Giter Site home page Giter Site logo

candran's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

candran's Issues

Compiler options

Would be useful to have available on the command line:

  • Static require
  • defining of preoprocessor constants

macros

Any plans to add macro support?

Something that would make syntax like this possible:

#ifdef _DEBUG
#define log(self, ...) self:log(...)
#else
#define log(self, ...) -- ...
#endif

I feel that would be alot more powerful than conditionals alone

support pure-lua environments?

lpeglabel requires compilation, and support for native modules, while there are several alternative lua implementations, such as gopher-lua, which don't support compiled native modules

although I don't know of any pure-lua lpeglabel implementations, there are a couple of lua-based lpeg implementations, though, such as LuLPeg(emulates LPeg v0.12) and LPegLJ(LPeg v1.0, but for LuaJIT 2.x, so doesn't really count)

my use-case would be with Algernon web server, which embeds gopher-lua, so I don't need to also have a separate copy of "normal lua" to use candran with

Lua 5.1 compatibility

Lune currently only work on Lua 5.2. It would be nice if it was compatible with Lua 5.1 (and LuaJit).

Error with help on latest stable

$ canc -h

Candran 0.14.0 compiler by Reuh
Usage: /usr/local/lib/luarocks/rocks-5.1/candran/0.14.0-1/bin/canc [options] filenames...
Use - instead of filenames to read from the standard input. The output file will be named stdin.lua by default.
Compiler options:
  dest="directory"  where compiled files should be written
  out="name.lua"    output filename. By default, will use the same name as the input file with a .lua extension.
  -print            write to the standard output instead of creating files
  -preprocess       only run the preprocessor
  -compile          only run the compiler
  -parse            only parse the file and prints errors to stdout
  -ast              (for debugging purposes) only parse the files and dump the AST to stdout
  -help or -h       print this text
Default options:
/usr/bin/lua5.1: ...cal/lib/luarocks/rocks-5.1/candran/0.14.0-1/bin/canc:26: bad argument #2 to 'format' (string expected, got boolean)
stack traceback:
        [C]: in function 'format'
        ...cal/lib/luarocks/rocks-5.1/candran/0.14.0-1/bin/canc:26: in main chunk
        [C]: ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.