Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6928273
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:09:54+00:00 2026-05-27T11:09:54+00:00

I wonder how many ways exist to interact with the Scala compiler outside of

  • 0

I wonder how many ways exist to interact with the Scala compiler outside of the normal “invoke it on the command line to compile my sources”.

Is there is some way to parse code, build an abstract syntax tree or use a library to compile code at runtime?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T11:09:55+00:00Added an answer on May 27, 2026 at 11:09 am

    Some time ago I used the (now depricated) scala.tools.nsc.Interpreter class to load, modify and — surprise! — interpret Scala code at runtime. If you want to exchange values between your and the interpreted code have a look at its bind method. It also has a compileSources and a compileString method but I didn’t used one of them so far. Also I don’t know anything about how to use this (or something else) to get the AST.

    See also: What is the purpose of the scala.tools.nsc package? and the nsc package scaladoc.

    Update: This should answer the AST question (from 2009, could be outdated): Scala AST in Scala

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

just a quick question. I wonder how many characters count for \n (new line
Google provide many wonderful tools and APIs. However, I wonder if there is a
I wonder if there are many servers that are supporting CORS?
There seem to be many different ways of doing OO in JavaScript. I like:
I wonder how many users still have not upgraded their phones from version 2.2.1.
We're discussing oo-functional hybrids here, but I wonder, how many languages actually qualify for
I am multiplying constant vector<bool> on different vector<double> many times. I wonder how fast
Good ol' JOptionPane contains a plethora of static methods. There are many combinations, yet
I wonder if it is possible to inherit auxiliary constructors in Scala? I tested
I wonder if there is any trick to solve this problem. I have my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.