Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 410 Bytes

File metadata and controls

20 lines (16 loc) · 410 Bytes

Arithmetic parser in Rust

https://habr.com/ru/post/455614/ (in Russian)

Rust arithmetic parser:

let expression = parse("100500*(2+35)-2*5").unwrap();

FFI: testffi.php

# build
docker-compose build
docker-compose run php74 cargo build 
docker-compose run php74 cbindgen . -o target/testffi.h

#run php
docker-compose run php74 php testffi.php