src
source code of Lemon compiler and virtual machinelib
source code of core Lemon librarydoc
documentations of source codetest
test code
$ git clone https://github.com/lemon-lang/lemon.git
make
or
make DEBUG=0 STATIC=0 USE_MALLOC=0 MODULE_OS=1 MODULE_SOCKET=1
DEBUG
, debug compiler flags, 0 is off.STATIC
, 0 build with dynamic-linked library, 1 build with static-linked.USE_MALLOC
, stdlib'smalloc
ensure return aligned pointerMODULE_OS
, POSIX builtin os libraryMODULE_SOCKET
, BSD Socket builtin library
Lemon can build on Windows via TDM-GCC, getting source code and use command
mingw32-make
lib/os.c
and lib/socket.c
are support POSIX and Windows environment.
- Accept Developer Certificate of Origin by adding
Signed-off-by: Your Name <[email protected]>
to commit log. - Check Code Style.
- Send patch to commiter.
Copyright (c) 2017 Zhicheng Wei
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.