about summary refs log tree commit diff
path: root/src/comp/syntax
AgeCommit message (Collapse)AuthorLines
2012-03-13fixup serialize_variantNiko Matsakis-388/+0
2012-03-13get new decorator extensions workingNiko Matsakis-0/+388
2012-03-02Move src/comp to src/rustcGraydon Hoare-10570/+0
2012-03-02Avoid hitting unicode lib per char.Graydon Hoare-2/+9
2012-03-02core: Remove _mut functions from vecBrian Anderson-3/+3
Instead, use vec::to_mut/from_mut to transform vectors in place as needed.
2012-03-02restructure to better support method inliningNiko Matsakis-1/+31
2012-03-02retool inline encoding to handle methods, fix testsNiko Matsakis-2/+10
2012-02-29optionally enforce local variable mutabilityNiko Matsakis-12/+14
2012-02-28change def's that are always local to use node_id, add --inline optNiko Matsakis-8/+16
2012-02-24Encode/decode AST into metadata, re-instantiate inlined itemsNiko Matsakis-28/+64
2012-02-23Finish cleanup of core::strMarijn Haverbeke-8/+6
Closes #1849
2012-02-23Various cleanups and optimizations in core::strMarijn Haverbeke-4/+4
2012-02-23(core::str) rename substr_len_bytes to substr_len, and delete unused ↵Kevin Cantu-1/+1
byte_index[_from]
2012-02-23(core::str) remove len_bytes aliasKevin Cantu-14/+13
2012-02-23(core::str) replace uses of unsafe::slice_bytes; replace find[_from]_bytes ↵Kevin Cantu-3/+3
with find[_from]
2012-02-23(core::str) replace byte_index[_from] with index[_from]Kevin Cantu-1/+1
2012-02-23(core::char) rename slice -> slice_charsKevin Cantu-2/+2
2012-02-23(core::str) mostly rename len -> len_charsKevin Cantu-5/+5
2012-02-22rustc: Don't ignore attributes inside empty mods. Closes #1655Brian Anderson-1/+7
2012-02-22rustc: Allow any integral types on rhs of shift opsBrian Anderson-0/+9
2012-02-22Stop normalizing patternsMarijn Haverbeke-3/+0
The check for whether a pat_ident is a variant or a binding is simple and fast. Normalizing patterns again and again is slow and error-prone (several places were forgetting to do it).
2012-02-22Make the various from_str functions return optionsMarijn Haverbeke-5/+5
So that they can be used with user input without causing task failures. Closes #1335
2012-02-22Remove preconditions from librariesMarijn Haverbeke-1/+0
Closes #1805
2012-02-22Clean up small things in syntax submodulesMarijn Haverbeke-51/+27
2012-02-21rustc: Generate crates with #astBrian Anderson-0/+22
2012-02-20Further work on resolving and typechecking classesTim Chevalier-3/+8
Class tests aren't working yet, but they fail a little later :-) Also, make the parser correctly set a constructor's result type to its enclosing class type.
2012-02-18Merge pull request #1860 from erickt/masterBrian Anderson-1/+2
add str::find_from_bytes and str::index_from_bytes
2012-02-17Refactor view_path to parse (but not yet process) export globs, unify code ↵Graydon Hoare-203/+164
paths.
2012-02-16core: rewrite str::byte_index to use vec functionsErick Tryzelaar-1/+2
2012-02-15make mut a keyword synonymous with mutableNiko Matsakis-45/+50
first step towards issue #1273
2012-02-15Rewrite exhaustiveness checkerMarijn Haverbeke-1/+1
Issue #352 Closes #1720 The old checker would happily accept things like 'alt x { @some(a) { a } }'. It now properly descends into patterns, checks exhaustiveness of booleans, and complains when number/string patterns aren't exhaustive.
2012-02-15Fix bad line printing for parse errorsMarijn Haverbeke-10/+5
The code that extracted lines from partially-parsed files was broken. Closes #1848
2012-02-15Support 'alt check' syntaxMarijn Haverbeke-7/+12
It is only a way to flag an alt as intentionally non-exhaustive right now. Issue #1679
2012-02-14When parsing a source string, fail when the entire string is not parsed.Kevin Atkinson-0/+3
(For now only fail when parse_from_source_str is used to avoid possible compatibility problems; parse_expr_from_source_str still does not check.)
2012-02-14Bug fix to accept $ in 0th pos, (ie #ast{$(x) + ...}).Kevin Atkinson-4/+5
Note: part from Niko Matsakis commit: rewrite assert to accept a $ in 0th pos.
2012-02-14Correctly handle the character position at the EOF.Kevin Atkinson-1/+7
Fixes issue #1785.
2012-02-14Use file_substr rather than <anon> when re-parsing quasi-quotesKevin Atkinson-24/+25
for better error messages.
2012-02-14Do a better job of reporting source location for files (i.e. filemap)Kevin Atkinson-2/+44
that are really a substr of another file.
2012-02-14Change file_substr to allow for external strings.Kevin Atkinson-14/+16
2012-02-14rustc: Parse crust functionsBrian Anderson-1/+4
2012-02-14rustc: Add crust functions to the ASTBrian Anderson-0/+2
2012-02-13Track purity/unsafety of iface and impl methodsMarijn Haverbeke-17/+16
Closes #1807
2012-02-12(core::str) rename byte_len_range -> substr_len_bytes andKevin Cantu-1/+1
rename char_len_range -> substr_len_chars
2012-02-12(core::str) rename byte_len -> len_bytes and rename char_len -> lenKevin Cantu-12/+12
2012-02-12(core::str) move push_byte, push_bytes, pop_byte, and shift_byte into ↵Kevin Cantu-9/+9
str::unsafe
2012-02-11using str::index...Kevin Cantu-5/+2
2012-02-11core::str rename [r]index -> [r]index_bytesKevin Cantu-1/+1
2012-02-11make bind syntax unnecessary: just use _ for one of the argumentsNiko Matsakis-12/+26
2012-02-10Don't allow binding patterns to bind keywordsMarijn Haverbeke-5/+14
Closes #1586
2012-02-10Remove a vestige of return-by-referenceMarijn Haverbeke-34/+14