Skip to content

Commit

Permalink
Merge pull request #27 from Tolc-Software/inheritence
Browse files Browse the repository at this point in the history
  • Loading branch information
srydell authored Mar 29, 2022
2 parents c34cb6a + 257dfed commit 9b6f975
Show file tree
Hide file tree
Showing 11 changed files with 235 additions and 117 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.17)

project(
tolc
VERSION 0.5.0
VERSION 0.6.0
LANGUAGES CXX)

configure_file(docs/ReleaseNotes/version.in
Expand Down Expand Up @@ -31,17 +31,17 @@ include(${modules}/Sanitizers.cmake)
include(${modules}/StaticAnalyzers.cmake)

include(${modules}/GetFrontend.cmake)
get_frontend(NAME Frontend.py VERSION v0.5.0)
get_frontend(NAME Frontend.py VERSION v0.6.0)
copy_frontend_docs(NAME Frontend.py SRC_DIR ${frontend.py_SOURCE_DIR} COPY_TO
${CMAKE_CURRENT_LIST_DIR}/docs/packaging/docs/python)

get_frontend(NAME Frontend.wasm VERSION v0.4.5)
get_frontend(NAME Frontend.wasm VERSION v0.5.0)
copy_frontend_docs(
NAME Frontend.wasm SRC_DIR ${frontend.wasm_SOURCE_DIR} COPY_TO
${CMAKE_CURRENT_LIST_DIR}/docs/packaging/docs/webassembly)

include(${modules}/GetParser.cmake)
get_parser(VERSION v0.3.0)
get_parser(VERSION v0.4.1)

# Set the include path for the system library in the variable
# We are using the standard library shipped
Expand Down
53 changes: 53 additions & 0 deletions docs/ReleaseNotes/v0.6.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# News #

## Bindings ##

### Python ###

* Add support for transferring documentation from C++ namespaces to pybind11 modules

* Add support for the following operators:

| C++ operator | Python operator |
|:----------------- |:--------------------- |
| operator+ | \_\_add\_\_ |
| operator- | \_\_sub\_\_ |
| operator* | \_\_mul\_\_ |
| operator/ | \_\_truediv\_\_ |
| operator% | \_\_mod\_\_ |
| operator+= | \_\_iadd\_\_ |
| operator-= | \_\_isub\_\_ |
| operator*= | \_\_imul\_\_ |
| operator/= | \_\_itruediv\_\_ |
| operator%= | \_\_imod\_\_ |
| operator== | \_\_eq\_\_ |
| operator!= | \_\_ne\_\_ |
| operator> | \_\_gt\_\_ |
| operator>= | \_\_ge\_\_ |
| operator< | \_\_lt\_\_ |
| operator<= | \_\_ge\_\_ |
| operator[] | \_\_getitem\_\_ |
| operator() | \_\_call\_\_ |


Overloading is also supported. There are more extensive documentation in the examples section.

* Added support for polymorphic classes
* Inherit from virtual C++ classes in python
* Override virtual C++ member functions in python
* Call functions via C++ base class on derived class from python

* Improve readability of generated output

### WebAssembly ###

* Added support for inheriting from C++ classes from javascript
* Automatic downcasting
* Improved documentation
* Improved readability of output somewhat
* Supports raw pointers when necessary
* Trusts the C++ side to know when to deallocate

## Minor ##

* Improve accessibility of documentation site on mobile
93 changes: 0 additions & 93 deletions docs/packaging/docs/guides/translating_a_cpp_library.md

This file was deleted.

4 changes: 2 additions & 2 deletions docs/packaging/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@

From here you can try any of the supported languages:

* [Python](./python/introduction.md)
* [WebAssembly](./webassembly/introduction.md)
* [Python](./python/quickstart.md)
* [WebAssembly](./webassembly/quickstart.md)
1 change: 1 addition & 0 deletions docs/packaging/docs/webassembly/conversions.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Note that any restriction this poses only applies to the public interface of you
| Class | Class |
| Public function | Class function |
| Private function | Not converted |
| Virtual function | Overridable function |
| Static member function | Static class function |
| Static member variable | Static member variable |
| Public const member variable | Read only property |
Expand Down
Loading

0 comments on commit 9b6f975

Please sign in to comment.