summaryrefslogtreecommitdiff
path: root/scss/expression.py
Commit message (Collapse)AuthorAgeFilesLines
* Maps should have their keys evaluated as expressions!Eevee (Alex Munroe)2013-08-281-4/+2
|
* Short-circuit boolean evaluation, and return the determining value.Eevee (Alex Munroe)2013-08-281-4/+10
| | | | | This acts much more like Python; now we don't even evaluate the AST once we know the result.
* At long last, kill ParserValue and most of the Color constructor.Eevee (Alex Munroe)2013-08-271-3/+3
|
* Holy crap variable arguments. Fixes #100!Eevee (Alex Munroe)2013-08-231-1/+4
|
* Parser support for slurpy arguments.Eevee (Alex Munroe)2013-08-231-25/+63
|
* Enforce that Sass functions return Sass values.Eevee (Alex Munroe)2013-08-211-2/+5
|
* except...asEevee (Alex Munroe)2013-08-191-2/+2
|
* Simplify AST cache.Eevee (Alex Munroe)2013-08-191-11/+6
|
* Fix bug in error printing. Make evaluate_expression use parse_expression.Eevee (Alex Munroe)2013-08-191-25/+15
|
* Bit more context for errors, including a sweet caret.Eevee (Alex Munroe)2013-08-191-10/+7
| | | | | Partially reverted the grayscale() fix, since it masks errors in Sass functions.
* Basic error wrapping.Eevee (Alex Munroe)2013-08-191-4/+9
|
* Parentheses for maps tooGerman M. Bravo2013-08-171-2/+2
|
* Better repr() for ExpressionsGerman M. Bravo2013-08-171-1/+37
|
* Using css built-in functions vs. css & scss functions vs. non-existent functionsGerman M. Bravo2013-08-171-24/+25
|
* AST cache is in a per-target basis (also, cache is now in the Calculator ↵German M. Bravo2013-08-171-3/+10
| | | | class type
* Functions and mixins can use other variables from the call (funcitons code ↵German M. Bravo2013-08-171-21/+32
| | | | restructured)
* ArgspecLiteral should return Undefined instead of None (for missing values)German M. Bravo2013-08-171-1/+1
|
* Variable renamedGerman M. Bravo2013-08-171-2/+2
|
* Exceptions during evaluation are ignored unless DEBUG is on (otherwise ↵German M. Bravo2013-08-171-7/+8
| | | | things get broken, like 'filter: grayscale(1) brightness(.1);' for example)
* Failed parses should return opaque Strings. More often.Eevee (Alex Munroe)2013-08-161-1/+1
|
* Removed legacy StringValue, ColorValue, *Value classesGerman M. Bravo2013-08-161-12/+12
|
* Maps can have literals as keys, they also take multiple optional commas ↵German M. Bravo2013-08-161-45/+74
| | | | (ignored). Grammar re-organized
* Merge branch 'experimental-maps'Eevee (Alex Munroe)2013-08-161-11/+58
|\ | | | | | | | | | | | | Conflicts: scss/expression.py scss/src/grammar/grammar.g scss/src/grammar/grammar.py
| * Support destructuring @each.Eevee (Alex Munroe)2013-08-151-4/+4
| |
| * Remove the need for _rewind.Eevee (Alex Munroe)2013-08-151-16/+11
| |
| * Experimental first crack at maps support.Eevee (Alex Munroe)2013-08-151-21/+68
| |
* | Remove trailing Undefined argumentsGerman M. Bravo2013-08-161-2/+4
| |
* | Fix handling of variable names in argspecs.Eevee (Alex Munroe)2013-08-161-8/+21
| |
* | Sass documentation tests pass.Eevee (Alex Munroe)2013-08-161-11/+10
| |
* | Interpolation of Undefined workingGerman M. Bravo2013-08-161-9/+19
| |
* | KWARG used by iter_def_argspec is expected to be a VariableGerman M. Bravo2013-08-161-16/+18
| |
* | Pass the expression directly to the scannerGerman M. Bravo2013-08-161-5/+3
| |
* | Compiled grammar updatedGerman M. Bravo2013-08-161-53/+57
| |
* | Remove the need for _rewind.Eevee (Alex Munroe)2013-08-161-30/+26
|/
* s/_test/_expr/ in grammarEevee (Alex Munroe)2013-08-141-18/+18
|
* Parentheses is an Expression.Eevee (Alex Munroe)2013-08-141-1/+1
|
* Treat !important as a bareword.Eevee (Alex Munroe)2013-08-141-13/+17
|
* Force variable assignment to always perform division.Eevee (Alex Munroe)2013-08-131-4/+4
|
* Pass the stack to the loggerGerman M. Bravo2013-08-131-1/+1
|
* Normalized function namesGerman M. Bravo2013-08-131-6/+5
|
* PEP8 cleanupsGerman M. Bravo2013-08-131-14/+18
|
* Move the FATAL_UNDEFINED check into the AST.Eevee (Alex Munroe)2013-08-131-37/+29
|
* Use the parser for parsing @function argspecs.Eevee (Alex Munroe)2013-08-131-6/+38
|
* Fix test_expression to use real types. Minor type fixes.Eevee (Alex Munroe)2013-08-131-3/+7
|
* Oops! ...this fixes last two commitsGerman M. Bravo2013-08-131-1/+1
|
* func doesn't have is_null... however, fuc is None at times here (for some ↵German M. Bravo2013-08-131-2/+1
| | | | weird reason)
* Added Undefined type. Undefined variables get this value if FATAL_UNDEFINED ↵German M. Bravo2013-08-131-3/+6
| | | | is False
* Simplified ColorValue considerably.Eevee (Alex Munroe)2013-08-091-2/+3
| | | | | | | | | | | | | | | - Rendering now follows Ruby's rules: shortest representation when compressing, otherwise use the original literal, the name, and hex notation in that order. - The old __str__ fallback is gone. - The `types` attribute is no longer needed. - The strange `merge` method is no longer needed. - Got rid of a couple uses of `to_str`, and made it aware of how to render types.
* Better parity for default operator behavior. Also fix some bare bools.Eevee (Alex Munroe)2013-08-091-3/+4
|
* Test suite passes (as well as it did before) on Py3!Eevee (Alex Munroe)2013-08-021-2/+2
|