/jscc

Primary LanguageJavaScriptApache License 2.0Apache-2.0

JSCC

WasmVM ,以 Node.js 打造的 C 編譯器

A C compiler for WasmVM with Node.js

注意事項 Notice

  1. 目前只有前處理器 (pp.js),以及產生語法樹

There's only preprocessor (pp.js) workable currently. Compiler can only generate Syntax Tree

  1. 預設的 include 目前還不是 /usr/include,而是相同路徑下的 include 資料夾

The default include directory is the include directory under source code path, instead of /usr/include.

  1. 本專案以 台灣正體中文 或英文為主要使用語言,其他語言 (例如: 簡體中文)僅能做為參考或翻譯使用。

This project uses "Taiwan Traditional Chinese" and English as primary language.

Other languages (Ex: Simplified Chinese) are only used as references or translations.

執行 Run

  1. 準備好 C 語言原始檔

Prepare your C source file

  1. 執行 Run

前處理器 Preprocessor

node jspp.js 輸入檔名 輸出檔名

node jspp.js INPUTFILE OUTPUTFILE

編譯器 Compiler

node jscc.js 輸入檔名 輸出檔名

node jscc.js INPUTFILE OUTPUTFILE