diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-02-09 03:22:40 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-02-09 07:41:48 +0800 |
commit | dc431fe1f6e0ff0ddcf1561b7ef136cc654cf976 (patch) | |
tree | 5698d740470c6a348a38579661c80e680fc2de7b /docs/using-the-compiler.rst | |
parent | cd81e58e3be5dd52a138f3ccac4ab2a305979acc (diff) | |
download | dexon-solidity-dc431fe1f6e0ff0ddcf1561b7ef136cc654cf976.tar.gz dexon-solidity-dc431fe1f6e0ff0ddcf1561b7ef136cc654cf976.tar.zst dexon-solidity-dc431fe1f6e0ff0ddcf1561b7ef136cc654cf976.zip |
Simplify the compiler API section (and remove pseudo code)
Diffstat (limited to 'docs/using-the-compiler.rst')
-rw-r--r-- | docs/using-the-compiler.rst | 24 |
1 files changed, 6 insertions, 18 deletions
diff --git a/docs/using-the-compiler.rst b/docs/using-the-compiler.rst index f197c663..08f18132 100644 --- a/docs/using-the-compiler.rst +++ b/docs/using-the-compiler.rst @@ -37,30 +37,18 @@ If ``solc`` is called with the option ``--link``, all input files are interprete .. _compiler-api: -Using the Compiler API -********************** - -The compiler API expects a JSON formatted input and outputs the compilations result in a JSON formatted output. - -See the following pseudo-code: - -.. code-block:: none - - // defined by the consumer of the API - importCallback(url:string) -> content:string - - // invoking the compiler - solc.compile(inputJSON:string, importCallback:function) -> outputJSON:string - -The compiler will ask the ``importCallback`` for each URL defined for a source file and will stop when it succeeds. -If all URLs failed, the compilation results in a failure. - Compiler Input and Output JSON Description ****************************************** +.. warning:: + + This JSON interface is not yet supported by the Solidity compiler, but will be released in a future version. + These JSON formats are used by the compiler API as well as are available through ``solc``. These are subject to change, some fields are optional (as noted), but it is aimed at to only make backwards compatible changes. +The compiler API expects a JSON formatted input and outputs the compilation result in a JSON formatted output. + Comments are of course not permitted and used here only for explanatory purposes. Input Description |