summary refs log tree commit diff
path: root/src/comp/syntax/parse/lexer.rs
AgeCommit message (Collapse)AuthorLines
2012-01-19rustc: ";" to "," in enumsPatrick Walton-4/+4
2012-01-19rustc: "tag" -> "enum"Patrick Walton-1/+1
2012-01-18Remove '.' after nullary tags in patternsTim Chevalier-1/+1
Does what it says on the tin. The next commit will remove support for this syntax.
2012-01-13rustc: Rename the lexer's err message to fatal and make it failBrian Anderson-17/+12
2012-01-13rustc: Replace the lexer's error handling with diagnostic implBrian Anderson-6/+14
2012-01-13rustc: Extract driver::diagnostic from syntax::codemapBrian Anderson-1/+2
2012-01-13rustc: Refactor codemap::emit_* functionsBrian Anderson-2/+2
A codemap is only needed when we have a span so put them both into the option.
2012-01-13Convert the objects used in the lexer and parser to records + implsMarijn Haverbeke-133/+115
2012-01-11Major clean-up of std::ioMarijn Haverbeke-0/+1
Use ifaces instead of objs, stop wrapping everything in two (or three) layers of no-value-added indirection, and remove some of the more pointless/outdated idioms from the code.
2012-01-09Change all uses of 'when' in alt-patterns to 'if'Austin Seipp-1/+1
Issue #1396
2011-12-29Add support in lexer for utf8 identifiers. No NFKC logic in char yet.Graydon Hoare-2/+4
2011-12-22Register new snapshots, purge log_err and log_full in favour of log(...).Graydon Hoare-3/+3
2011-12-22Register snapshots and switch logging over to use of log_full or #error / ↵Graydon Hoare-11/+11
#debug.
2011-12-16Make 1.f parse as a field access on the integer 1Marijn Haverbeke-1/+1
A dot is only considered part of a number when not followed by a letter Closes #1306
2011-12-13Copy first batch of material from libstd to libcore.Graydon Hoare-5/+6
2011-12-08Consider variant constructors pure functions for the purpose of purity checkingMarijn Haverbeke-1/+0
Closes #1269
2011-12-07Change literal representation to not truncateMarijn Haverbeke-69/+50
Also shuffles around the organization of numeric literals and types, separating by int/uint/float instead of machine-vs-non-machine types. This simplifies some code. Closes #974 Closes #1252
2011-12-02Stop lexing -1 as a single tokenMarijn Haverbeke-49/+2
And remove the hack that made 1-1 work given that other hack. Issue #954
2011-11-17remove compile-command from local variable blocksNiko Matsakis-1/+0
2011-11-10Cleanup unused importsHaitao Li-2/+1
2011-11-03Disallow writing to function arguments againMarijn Haverbeke-16/+5
Remove implicit copying hack. Closes #1118
2011-10-07Make 1-1 parse againMarijn Haverbeke-0/+37
Issue #954 This is not a very elegant fix -- we should probably do something with constant folding to handle negative-int alt patterns in the future.
2011-09-27Patch to error instead of crashing when parsing unmatched double quotesWade Mealing-0/+7
Patch to error and fail instead of using all available memory then crashing to detect the error condition of an unmatched double quote before the end of a file. I couldn't get it to show nice error messages, so this may not be the ideal fix. A test case for this situation has also been added.
2011-09-16Require body of else-less if expressions to be a value-less blockMarijn Haverbeke-1/+1
For consistency with other constructs that could not possibly return a value (say, loops).
2011-09-14Add support for negative literals.Josh Matthews-6/+25
2011-09-13Improve lexing of float literalsMarijn Haverbeke-39/+36
Closes #575
2011-09-12Factor imports mindlessly.Graydon Hoare-8/+2
2011-09-12Pretty-print for new arg-mode syntaxMarijn Haverbeke-7/+6
2011-09-12Reformat for new mode syntax, step 1Marijn Haverbeke-28/+30
Long lines were fixed in a very crude way, as I'll be following up with another reformat in a bit.
2011-09-02Reformat. Issue #855Brian Anderson-78/+61
2011-09-01Convert all uses of #ifmt to #fmt. Issue #855Brian Anderson-5/+5
2011-09-01Rename std::istr to std::str. Issue #855Brian Anderson-28/+28
2011-09-01Remove std::str. Issue #855Brian Anderson-1/+0
2011-08-31Convert uses of #fmt to #ifmt. Issue #855Brian Anderson-8/+7
2011-08-27Convert rustc::syntax::codemap to istrs. Issue #855Brian Anderson-1/+1
2011-08-27Convert parser to istrs. Issue #855Brian Anderson-1/+1
2011-08-27Convert rustc::syntax::token to istrs. Issue #855Brian Anderson-1/+1
2011-08-27Convert lexer to istrs. Issue #855Brian Anderson-83/+104
2011-08-22Move functions from syntax::ast to syntax::ast_utilBrian Anderson-1/+1
This leaves syntax::ast just defining the AST, which strikes me as somewhat nicer
2011-08-20ReformatBrian Anderson-48/+44
This changes the indexing syntax from .() to [], the vector syntax from ~[] to [] and the extension syntax from #fmt() to #fmt[]
2011-08-16Remove dead send/recv operator tokens.Graydon Hoare-2/+0
2011-08-16Port the compiler to the expr foo::<T> syntax.Erick Tryzelaar-6/+6
2011-08-16Port the compiler to the typaram foo<T> syntax.Erick Tryzelaar-5/+5
2011-08-16Rename std::ivec to std::vecBrian Anderson-2/+2
2011-08-15The wonky for...in... whitespace was bothering me. Sorry!Lindsey Kuper-1/+1
2011-08-15Make spans into stacks (to store expansion backtraces).Paul Stansifer-1/+1
2011-08-12Rename std::ioivec to std::ioBrian Anderson-2/+2
2011-08-12Rename std::str::unsafe_from_bytes_ivec to unsafe_from_bytesBrian Anderson-4/+4
2011-08-12Convert all uses of unsafe_from_bytes to unsafe_from_bytes_ivecBrian Anderson-3/+3
2011-08-12Remove str::from_bytesBrian Anderson-3/+3
This is exactly the same as str::unsafe_from_bytes