aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/syntax
Commit message (Collapse)AuthorAge
* Add list.popGravatar Laurent Le Brun2015-12-22
| | | | | -- MOS_MIGRATED_REVID=110778743
* Skylark: Slice operations now accept a step argument.Gravatar Florian Weikert2015-12-17
| | | | | -- MOS_MIGRATED_REVID=110446625
* Rollback of commit 21fbbd6a32b95ba746f09dae1eaeaccf675cd5b3.Gravatar Florian Weikert2015-12-17
| | | | | | | | | | | | | | | | | | | | | *** Reason for rollback *** The original CL broke our CI because Bazel used an old version of Guava (18.0 instead of 19.0). We fixed this problem, so we can roll forward the original change. *** Original change description *** Automated [] rollback of []. *** Reason for rollback *** Broke the build: http://ci.bazel.io/job/Bazel/262/ *** Original change description *** Skylark: implemented more string functions (isalnum, isdigit, etc). -- MOS_MIGRATED_REVID=110439750
* Rollback of commit d03485f1361ff825a976512959438321442c7c98.Gravatar Kristina Chodorow2015-12-16
| | | | | | | | | | | | | *** Reason for rollback *** Broke the build: http://ci.bazel.io/job/Bazel/262/ *** Original change description *** Skylark: implemented more string functions (isalnum, isdigit, etc). -- MOS_MIGRATED_REVID=110383960
* Add a new class to encapsulate operations on Skylark import statements. This ↵Gravatar John Field2015-12-16
| | | | | | | | | will make it easier to manage the transition from legacy Skylark path-style loads to label-based loads. We handle both old-style (path-based) imports and new-style (label-based) imports. This class is in the cmdline package since it depends on Label-related code in the same package. The cmdline package depends on the syntax package, so this class can't go there, which would otherwise be a reasonable place to put it. -- MOS_MIGRATED_REVID=110372547
* Move annotation classes used for referencing framework Java classes from ↵Gravatar John Field2015-12-16
| | | | | | | | | | | | | | Skylark into their own package. This allows, e.g., classes in the syntax package to access classes in the cmdline package without creating circular dependencies. While we're here: - Removed a couple of unused BUILD deps flagged in []. - Updated SkylarkRuleImplementationFunctionsTest to remove non-ASCII characters and clarify the intent of the test. -- MOS_MIGRATED_REVID=110360763
* Implement list.remove functionGravatar Laurent Le Brun2015-12-16
| | | | | -- MOS_MIGRATED_REVID=110356439
* Skylark: implemented all() and any()Gravatar Florian Weikert2015-12-16
| | | | | -- MOS_MIGRATED_REVID=110348607
* Fix documentation of set.Gravatar Laurent Le Brun2015-12-16
| | | | | | | Type "map" doesn't exist. "struct" is not allowed. -- MOS_MIGRATED_REVID=110265638
* Skylark: implemented more string functions (isalnum, isdigit, etc).Gravatar Florian Weikert2015-12-16
| | | | | -- MOS_MIGRATED_REVID=110261986
* Skylark: implemented reversed()Gravatar Florian Weikert2015-12-15
| | | | | -- MOS_MIGRATED_REVID=110141376
* Skylark: implemented min() and max().Gravatar Florian Weikert2015-12-13
| | | | | -- MOS_MIGRATED_REVID=110025690
* Skylark: implemented str.splitlines()Gravatar Florian Weikert2015-12-11
| | | | | -- MOS_MIGRATED_REVID=109942021
* Use Bazel Preconditions variant which avoids varargs array creationGravatar Mark Schaller2015-12-10
| | | | | | | Reduces garbage. -- MOS_MIGRATED_REVID=109914243
* Avoid autoboxing on potential hot paths in LineNumberTableGravatar Michajlo Matijkiw2015-12-07
| | | | | | | | We wind up hitting this code path each time we call a user defined function to calculate a pretty string for profiling purposes. -- MOS_MIGRATED_REVID=109580385
* Workaround javac 1.7 bugGravatar Dmitry Lomov2015-11-19
| | | | | -- MOS_MIGRATED_REVID=108243881
* Sort entries in SelectorValue.Gravatar Han-Wen Nienhuys2015-11-18
| | | | | | | This makes query output independent of the insertion order of the dictionary. -- MOS_MIGRATED_REVID=108061190
* Use Labels, rather than PathFragments, to represent Skylark loads ↵Gravatar John Field2015-11-13
| | | | | | | | | | | | | | | | | | | | | internally. The load location for a Skylark Aspect is specified via a PathFragment, for consistency with current non-Aspect Skylark loads. This should be a semantics-preserving change for users. In a subsequent CL, I'll change the Skylark syntax to allow load statements to use labels as well as paths, with the goal of eventually deprecating the latter. Also: - Removed the hack for handling relative loads in the prelude file. - Refactored some redundant functionality in PackageFunction and SkylarkImportLookupFunction for handling loads. - Removed the ability to put the BUILD file for the package containing a Skylark file under a different package root than the Skylark file itself. This functionality isn't currently used and is inconsistent with Blaze's handling of the package path elsewhere. - Added BUILD files to a number of tests that load Skylark files; this is consistent with the requirement that all Skylark files need to be part of some package. - Changed the constants used to set the location of the prelude file from paths to labels. -- MOS_MIGRATED_REVID=107741568
* Removed double trailing periods in console output.Gravatar Florian Weikert2015-11-12
| | | | | -- MOS_MIGRATED_REVID=107582017
* Remove trailing period to avoid double-period.Gravatar Googler2015-11-10
| | | | | -- MOS_MIGRATED_REVID=107465479
* Add profiler support for compiled Skylark.Gravatar Florian Weikert2015-11-10
| | | | | -- MOS_MIGRATED_REVID=107416625
* Compile function call expressions.Gravatar Florian Weikert2015-11-10
| | | | | | | Mostly reuses the interpreters argument checking and helper functions. -- MOS_MIGRATED_REVID=107395974
* Compile list and dict comprehensions to byte code.Gravatar Florian Weikert2015-11-10
| | | | | -- MOS_MIGRATED_REVID=107394025
* Compile binary operations to byte code.Gravatar Florian Weikert2015-11-10
| | | | | -- MOS_MIGRATED_REVID=107391382
* Compile for loops with break/continue to byte codeGravatar Florian Weikert2015-11-10
| | | | | -- MOS_MIGRATED_REVID=107389651
* Compile dictionary literals to byte code.Gravatar Florian Weikert2015-11-10
| | | | | -- MOS_MIGRATED_REVID=107388016
* Compile conditional statement and expressions.Gravatar Florian Weikert2015-11-10
| | | | | -- MOS_MIGRATED_REVID=107385205
* Add list.index methodGravatar Laurent Le Brun2015-11-10
| | | | | -- MOS_MIGRATED_REVID=107379557
* Compile dot and not expressions to byte code.Gravatar Florian Weikert2015-11-10
| | | | | -- MOS_MIGRATED_REVID=107378197
* Compile assignments to byte code and throw errors.Gravatar Florian Weikert2015-11-10
| | | | | | | | Add EvalExceptions for cases in which the interpreter would throw them during evaluation of the function definition. -- MOS_MIGRATED_REVID=107376021
* Compile list literals to byte code.Gravatar Klaas Boesche2015-11-06
| | | | | -- MOS_MIGRATED_REVID=107231604
* Compile int and string literals to byte codeGravatar Klaas Boesche2015-11-06
| | | | | -- MOS_MIGRATED_REVID=107227795
* Compile identifiers to byte codeGravatar Klaas Boesche2015-11-06
| | | | | -- MOS_MIGRATED_REVID=107225693
* Compile return statements to byte codeGravatar Klaas Boesche2015-11-06
| | | | | -- MOS_MIGRATED_REVID=107225692
* Add initial Skylark byte code generation code.Gravatar Klaas Boesche2015-11-06
| | | | | | | | Does not yet contain any implementation for expressions and statements but sets up various needed mechanisms and helper classes. -- MOS_MIGRATED_REVID=107222845
* Improve error message for select objects ('+' operator for incompatible types)Gravatar Laurent Le Brun2015-11-05
| | | | | -- MOS_MIGRATED_REVID=107131704
* Cache and canonicalize references to PathFragments in ↵Gravatar Eric Fellheimer2015-11-03
| | | | | | | | | LineNumberTable$HashLine. This avoids creating largely the same set of PathFragment again and again. Also remove unnecessary boxing/unboxing. -- MOS_MIGRATED_REVID=106892926
* Cleanup, TODO removalGravatar Laurent Le Brun2015-10-30
| | | | | -- MOS_MIGRATED_REVID=106605940
* Add Skylark support for string_list_dictGravatar Francois-Rene Rideau2015-10-30
| | | | | | | Convert to Skylark values when destructuring a sequence or map. -- MOS_MIGRATED_REVID=106591523
* Skylark interpreter optimizationGravatar Laurent Le Brun2015-10-28
| | | | | | | Special-case the return statement to avoid throwing an exception. -- MOS_MIGRATED_REVID=106488391
* Build indexer: Handle for loopsGravatar Laurent Le Brun2015-10-28
| | | | | | | e.g. for i in list: pass -- MOS_MIGRATED_REVID=106488146
* Fix location for Break and Continue AST nodes.Gravatar Laurent Le Brun2015-10-27
| | | | | -- MOS_MIGRATED_REVID=106291132
* Lexer: Handle triple quoted raw strings (e.g. r"""abc""").Gravatar Laurent Le Brun2015-10-21
| | | | | -- MOS_MIGRATED_REVID=105956734
* Remove the repository name from PACKAGE_NAME and move it to the new ↵Gravatar Lukacs Berki2015-10-21
| | | | | | | REPOSITORY_NAME symbol. -- MOS_MIGRATED_REVID=105954652
* Change the preprocessor interface to take the byte[] contents of the BUILD ↵Gravatar Nathan Harmata2015-10-21
| | | | | | | | | file rather than a ParserInputSource. This is part of a series of changes with the net result being that we open, read, and parse each BUILD file exactly once. -- MOS_MIGRATED_REVID=105911557
* Add some strip/rstrip/lstrip testsGravatar Googler2015-10-21
| | | | | | | and fix the bugs that showed up as a result. -- MOS_MIGRATED_REVID=105896905
* Unify Skylark and BUILD listsGravatar Francois-Rene Rideau2015-10-20
| | | | | | | | Use SkylarkList everywhere rather than either List or GlobList. Keep a GlobList underneath a MutableList, where applicable. -- MOS_MIGRATED_REVID=105864035
* Improve error diagnostics for Skylark aspects.Gravatar Dmitry Lomov2015-10-20
| | | | | -- MOS_MIGRATED_REVID=105851371
* Minor improvements to set documentation.Gravatar Laurent Le Brun2015-10-16
| | | | | -- MOS_MIGRATED_REVID=105591091
* Fixed wrong error message when using class definitions in Skylark / BUILD files.Gravatar Florian Weikert2015-10-16
| | | | | -- MOS_MIGRATED_REVID=105585492