Sha256: e5170c5faca99b3a6eda89bcace64bb501008a2dc06f295ac3cd3b7625a15d0c
Contents?: true
Size: 529 Bytes
Versions: 1
Compression:
Stored size: 529 Bytes
Contents
# encoding: utf-8 # frozen_string_literal: true lib = File.expand_path("../lib", __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require "ruby-prof" require "pry" require "pry-byebug" require "pry-rescue" require "carbon" require "carbon/compiler" Carbon.verbose += 1 Pry.rescue do project = Carbon::Compiler::Project.new(["program.ca"], ".") index = project.call main = Carbon::Type("Program.main()") build = Carbon::Concrete::Build.new(index.build(main), index) build.call puts build.module end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
carbon-compiler-0.2.0 | test.rb |