Skip to content
class method

Prism.lex_compat

Prism::lex_compat(source, **options) → LexCompat::Result

Returns a parse result whose value is an array of tokens that closely resembles the return value of Ripper::lex. The main difference is that the :on_sp token is not emitted.

For supported options, see Prism::parse.