rust/src/librustpkg
Benjamin Herr 9d7b130041 add new enum ast::StrStyle as field to ast::lit_str
For the benefit of the pretty printer we want to keep track of how
string literals in the ast were originally represented in the source
code.

This commit changes parser functions so they don't extract strings from
the token stream without at least also returning what style of string
literal it was. This is stored in the resulting ast node for string
literals, obviously, for the package id in `extern mod = r"package id"`
view items, for the inline asm in `asm!()` invocations.

For `asm!()`'s other arguments or for `extern "Rust" fn()` items, I just
the style of string, because it seemed disproportionally cumbersome to
thread that information through the string processing that happens with
those string literals, given the limited advantage raw string literals
would provide in these positions.

The other syntax extensions don't seem to store passed string literals
in the ast, so they also discard the style of strings they parse.
2013-10-08 03:43:28 +02:00
..
testsuite Update the compiler to not use printf/printfln 2013-09-26 17:05:59 -07:00
api.rs rustpkg: Remove uses of fmt! 2013-09-30 23:21:19 -07:00
conditions.rs rustpkg: Use workcache 2013-09-08 20:05:12 -07:00
context.rs rustpkg: Remove uses of fmt! 2013-09-30 23:21:19 -07:00
crate.rs librustc: Remove all uses of "copy". 2013-07-17 14:57:51 -07:00
exit_codes.rs rustpkg: Register correct dependencies for built and installed files 2013-09-18 22:48:37 -07:00
installed_packages.rs rustpkg: Remove uses of fmt! 2013-09-30 23:21:19 -07:00
messages.rs Bring compiletest/rustpkg/driver up to date on std vs core 2013-07-04 16:30:48 -07:00
package_id.rs rustpkg: Remove uses of fmt! 2013-09-30 23:21:19 -07:00
package_source.rs rustpkg: Remove uses of fmt! 2013-09-30 23:21:19 -07:00
path_util.rs Migrate users of 'loop' to 'continue' 2013-10-01 15:53:13 -07:00
README.txt rustpkg: update README saying which tests pass 2013-04-24 17:51:30 -07:00
rustpkg.rs Implement feature-gating for the compiler 2013-10-05 20:19:33 -07:00
search.rs rustpkg: Remove uses of fmt! 2013-09-30 23:21:19 -07:00
source_control.rs rustpkg: Remove uses of fmt! 2013-09-30 23:21:19 -07:00
target.rs rustpkg: Implement rustpkg test 2013-09-27 09:38:22 -07:00
tests.rs rustpkg: Remove uses of fmt! 2013-09-30 23:21:19 -07:00
usage.rs docs / rustpkg: Document rustpkg test more 2013-10-05 23:17:23 -04:00
util.rs add new enum ast::StrStyle as field to ast::lit_str 2013-10-08 03:43:28 +02:00
version.rs Migrate users of 'loop' to 'continue' 2013-10-01 15:53:13 -07:00
workcache_support.rs rustpkg: Remove uses of fmt! 2013-09-30 23:21:19 -07:00
workspace.rs rustpkg: Remove uses of fmt! 2013-09-30 23:21:19 -07:00

Right now, commands that work are "build" and "clean".

`rustpkg build` and `rustpkg clean` should work

for example:
$ cd ~/rust/src/librustpkg/testsuite/pass
$ rustpkg build hello-world
... some output ...
$ rustpkg clean hello-world

-------------
the following test packages in librustpkg/testsuite/pass:
      * hello-world
      * install-paths
      * simple-lib
      * deeply/nested/path
      * fancy-lib

   It fails on the following test packages:
      * external-crate (no support for `extern mod` inference yet)

and should fail with proper error messages
on all of the test packages in librustpkg/testsuite/fail
      * no-inferred-crates