[OpenSCAD] what base language is used in OpenSCAD
woferry at mac.com
Thu Apr 26 21:38:21 EDT 2018
AFAIK, OpenSCAD isn't *built* on any other languages, it's its own unique language. I mean it's written in C++, but the language parser is unique to OpenSCAD.
There are certainly libraries out there that include functions to do string to number conversions, for example relativity.scad (<https://github.com/davidson16807/relativity.scad/blob/master>, in "relativity.scad" see the "parse_int" function, it's also in the separate "strings.scad" file in the same repo). - Will
> On Apr 26, 2018, at 2:51 PM, ken at volksswitch.org wrote:
> I’d like to be able to convert a string to an integer in OpenSCAD. For example:
> string = “11”;
> number = xxx(string);
> … produces: ECHO: 11
> What is xxx()? I have a suspicion that there are more functions available in OpenSCAD than appear on the Cheat Sheet. Functions that just come with the language that OpenSCAD is built on. Am I hallucinating or is there such a language?
> OpenSCAD mailing list
> Discuss at lists.openscad.org
More information about the Discuss