How to compile erlang code loaded into a string?
问题 I have a generated string that contains the code for an erlang module. Is there a way to compile the generated module straight from the string? Or is there a way to convert the string into the format needed for compile:forms/1 ? Or will I have to save it to a temp file first and then compile it with compile:file/1 ? Alternatively, I can add support to the compile module, but there must be a reason why the good people that write erlang haven't added it. 回答1: You need to scan your string into