about summary refs log tree commit diff
path: root/src/comp/syntax/parse/lexer.rs
AgeCommit message (Collapse)AuthorLines
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
2011-08-09Port the compiler to the ivec type [T] syntax.Erick Tryzelaar-13/+13
2011-07-29Remove unreachable statementsMarijn Haverbeke-1/+0
2011-07-27Make printing of comments inside bindings slightly less brokenMarijn Haverbeke-11/+1
2011-07-27Reformat for new syntaxMarijn Haverbeke-402/+377
2011-07-26Handle column-zero \n explicitly rather than looking for \n\n.Graydon Hoare-4/+1
2011-07-26Consume EOL after line comment.Graydon Hoare-0/+3
2011-07-26Remove all uses of tuples from the compiler and stdlibMarijn Haverbeke-9/+9
2011-07-25Recognize and preserve first blank line if first line of file.Graydon Hoare-5/+13
2011-07-25Adjust pp interface to that printing a crate (an reproducing ↵Graydon Hoare-2/+2
literals/comments) takes a reader, not just a filename. Fixes first big pp-fuzzer bug.
2011-07-25Make the lexer slightly less statefulMarijn Haverbeke-21/+18
2011-07-16Make clear the differentiation between char pos and byte pos in filemaps. ↵Josh Matthews-3/+9
Fix up error printing for files with multi-byte characters.
2011-07-15rustc: Remove a bunch of exterior vectorsPatrick Walton-12/+12
2011-07-14rustc: Move much of metadata reading over to interior vectorsPatrick Walton-3/+3