prism
prism copied to clipboard
Add support for C++
It is currently impossible to use the Prism C API in C++ projects because it uses the field name operator, which is a reserved word in C++. This PR changes the name of the operator field to operator_ and adds a CI workflow to ensure that we can build C++ files with Prism.
Thanks @egiurleo! I ended up going a slightly different way because after living with operator_ being different in Ruby vs C it was weirding me out. So I renamed those fields to binary_operator in all layers here: https://github.com/ruby/ruby/pull/10758.
I still would like to merge the github action and the test script though.
@kddnewton Removed the commit that introduced operator_ and just kept the testing.