Commit Graph

  • c5dc711ce3 Q106-030: Add get_structured_context fn Raphael Amiard 2017-01-06 16:43:34 +01:00
  • 4832217484 Q106-030: Rename print_errors print_context Raphael Amiard 2017-01-06 16:42:30 +01:00
  • 691ddefe98 Q106-030: add --parsable-errors option Raphael Amiard 2017-01-06 16:40:03 +01:00
  • 400d3148ee PC19-022: Get rid of legacy stuff for no metadata case Raphael Amiard 2017-01-05 14:35:35 +01:00
  • 683508076e Minor: style Raphael Amiard 2017-01-05 14:47:06 +01:00
  • 9079a84e7a Minor: remove unused import Raphael Amiard 2017-01-05 14:40:11 +01:00
  • 871268b02b PC19-022: Add test for access to env element fields Raphael Amiard 2017-01-04 14:55:08 +01:00
  • 801b3c69d6 PC19-022: Implement implicit deref on env elements Raphael Amiard 2016-12-21 18:33:20 +01:00
  • 8341593cf2 $.Lexer: special-case offset/length for the termination token Pierre-Marie de Rodat 2017-01-05 17:21:40 +01:00
  • aa524622e4 $.Lexer: minor refactoring Pierre-Marie de Rodat 2017-01-05 16:58:17 +01:00
  • e3c022b46f $.Analysis: minor refactoring Pierre-Marie de Rodat 2017-01-05 16:20:07 +01:00
  • b5d3140aa9 $.Analysis: Refactor token raw data extraction Pierre-Marie de Rodat 2017-01-05 16:19:26 +01:00
  • 82f5e36854 Store source buffer bounds in token data records Pierre-Marie de Rodat 2017-01-05 15:54:48 +01:00
  • 0907b5e7a4 Langkit_Suppport.TDH: make Get_*Trivias return a list of indices Pierre-Marie de Rodat 2017-01-05 14:46:27 +01:00
  • 0ea4f1a41d Minor reformatting Pierre-Marie de Rodat 2017-01-05 11:11:24 +01:00
  • dc1fe7a35c Switch all Text_Access in tokens to Text_Cst_Access Pierre-Marie de Rodat 2017-01-05 11:05:59 +01:00
  • e9f06517f4 Minor reformatting Pierre-Marie de Rodat 2017-01-05 10:20:30 +01:00
  • 5ffb14e781 Langkit_Support.Text: add an access to constant Text_Type type Pierre-Marie de Rodat 2017-01-05 10:11:46 +01:00
  • 27729d18ad Lexer: store the lengths of token texts along with their offsets Pierre-Marie de Rodat 2017-01-05 09:46:12 +01:00
  • df17687c19 Introduce a true user-ready type for token data Pierre-Marie de Rodat 2017-01-04 18:06:54 +01:00
  • 497704288b langkit.utils.printcol: flush standard output before returning Pierre-Marie de Rodat 2017-01-04 18:00:37 +01:00
  • 9a4b53ea01 Reorder and document $.Lexer.Token_Data_Type fields Pierre-Marie de Rodat 2017-01-04 17:36:36 +01:00
  • 78c427d70d Keep a copy of the original source text in token data handlers Pierre-Marie de Rodat 2017-01-04 17:30:49 +01:00
  • 52145301c1 Refactor $.Lexer to have an explicit constant for Quex leading chars Pierre-Marie de Rodat 2017-01-05 15:31:40 +01:00
  • 9bac096ee4 Refactor and comment token data handler initalize/reset/free procedures Pierre-Marie de Rodat 2017-01-04 17:01:09 +01:00
  • d51fa934fe Fix minor typos Pierre-Marie de Rodat 2016-12-23 17:37:23 +01:00
  • 8edf17f6b1 Add missing test.out content... Pierre-Marie de Rodat 2016-12-23 17:34:59 +01:00
  • 3efcbc86bb Add a testcase for invalid field access for analysis unit in properties Pierre-Marie de Rodat 2016-12-23 16:31:35 +01:00
  • 3ada86afb4 Add a test for the ASTNode.unit primitive in the properties DSL Pierre-Marie de Rodat 2016-12-23 16:30:50 +01:00
  • 39d0fc05c1 Minor reformatting Pierre-Marie de Rodat 2016-12-23 16:26:30 +01:00
  • bbdce12c5e Properties: make it possible to get the analysis unit embedding a node Pierre-Marie de Rodat 2016-12-23 15:43:40 +01:00
  • 2225e2b0d6 Add a resolved expression for basic field accesses Pierre-Marie de Rodat 2016-12-23 15:56:17 +01:00
  • 72d674539e Fix minor typos Pierre-Marie de Rodat 2016-12-23 15:43:16 +01:00
  • 1d95bc8244 Create a AnalysisUnitType.root operation in the properties DSL Pierre-Marie de Rodat 2016-12-20 12:56:13 +01:00
  • f92c6a8bbd Add a testcase for analysis units in the properties DSL Pierre-Marie de Rodat 2016-12-23 15:20:09 +01:00
  • 21c508a67c Bind analysis units in the Python API of properties Pierre-Marie de Rodat 2016-12-23 15:19:30 +01:00
  • 18f5b9cb2f Bind analysis units in the C API of properties Pierre-Marie de Rodat 2016-12-23 15:18:43 +01:00
  • 909225ada4 Add a testcase for invalid external properties Pierre-Marie de Rodat 2016-12-23 14:38:44 +01:00
  • 5747d69e3c Add a language check for untyped external properties Pierre-Marie de Rodat 2016-12-23 12:51:14 +01:00
  • a7fbcfd3b2 Add a __repr__ method for diagnostics.Context Pierre-Marie de Rodat 2016-12-23 12:50:00 +01:00
  • 77d3483c63 Add a CompiledType subclass for analysis units Pierre-Marie de Rodat 2016-12-20 11:25:48 +01:00
  • 9f1aec61b4 Analysis: move some environments handling internals to private part Pierre-Marie de Rodat 2016-12-23 11:24:15 +01:00
  • 33e5ed4c5b Analysis: fix several comments in environments handling Pierre-Marie de Rodat 2016-12-23 11:16:20 +01:00
  • db1a1cb5b7 Analysis: fix a comment box Pierre-Marie de Rodat 2016-12-23 11:10:28 +01:00
  • 578c761112 Analysis: move AST node's Populate_Lexical_Env to private part Pierre-Marie de Rodat 2016-12-23 11:07:41 +01:00
  • 1b42f2e707 Update dangling comment reference to $.AST Pierre-Marie de Rodat 2016-12-23 11:06:34 +01:00
  • 2f60e1bb97 Analysis: move a couple of token helpers to the private part Pierre-Marie de Rodat 2016-12-23 11:04:01 +01:00
  • 7b28386fd8 Analysis: move Get_Unit into a group of AST node primitives Pierre-Marie de Rodat 2016-12-23 10:48:10 +01:00
  • c809de9b09 Remove obsolete TODO Pierre-Marie de Rodat 2016-12-23 10:45:32 +01:00
  • 23ffae9148 Analysis: move AST node destructors to private part Pierre-Marie de Rodat 2016-12-23 10:44:39 +01:00
  • 63c80f665d Analysis: move Reset_Property_Caches to private part Pierre-Marie de Rodat 2016-12-23 10:35:34 +01:00
  • 8c2cd8e309 Move the Lex_Env_Data mechanism to $.Analysis' private part Pierre-Marie de Rodat 2016-12-23 10:33:26 +01:00
  • 982055f71c Remove a trailing whitespace Pierre-Marie de Rodat 2016-12-23 10:30:28 +01:00
  • 748110aef1 Remove the obsolete Analysis_Unit_Interface mechanism Pierre-Marie de Rodat 2016-12-22 18:38:02 +01:00
  • acfb0dd731 Update $.Debug.PTok so that is does not rely on analysis interfaces Pierre-Marie de Rodat 2016-12-23 09:11:46 +01:00
  • a5d4e69aca $.Analysis: use Analysis_Unit_Type.TDH to short-circuit Token_Data Pierre-Marie de Rodat 2016-12-22 18:35:16 +01:00
  • 56269c6bab Remove obsolete conversion helpers in the C binding implementation Pierre-Marie de Rodat 2016-12-22 16:21:07 +01:00
  • 30910ca757 Move Register_Destroyable_Gen to $.Analysis Pierre-Marie de Rodat 2016-12-22 16:14:30 +01:00
  • 74cc42e436 Rename Register_Destroyable to Register_Destroyable_Gen Pierre-Marie de Rodat 2016-12-22 15:57:29 +01:00
  • 9ad62b03bf Change AST nodes to hold Analysis_Unit instead of its interface type Pierre-Marie de Rodat 2016-12-22 15:27:25 +01:00
  • 85ba34e06d Remove obsolete $.Analysis.Is_Referenced overloads Pierre-Marie de Rodat 2016-12-22 15:24:34 +01:00
  • 8f9369f09d Get rid of $.Analysis.Get_Unit_Internal Pierre-Marie de Rodat 2016-12-22 15:18:45 +01:00
  • ab19e816db Remove Analysis_Unit_Interface from the parsers' API Pierre-Marie de Rodat 2016-12-22 15:00:51 +01:00
  • 67c98ef552 Remove dotted notation for Analysis_Unit_Type primitives calls Pierre-Marie de Rodat 2016-12-22 13:08:58 +01:00
  • 653e642439 Move the private/body-wide use causes to "canonical" places Pierre-Marie de Rodat 2016-12-22 12:50:24 +01:00
  • 5b4925b3b4 Refactor the generated library (big time!) Pierre-Marie de Rodat 2016-12-21 15:19:46 +01:00
  • 7596173642 Fix a typo Pierre-Marie de Rodat 2016-12-22 11:37:23 +01:00
  • 235967b178 Remove the Iterable aspect on AST nodes Pierre-Marie de Rodat 2016-12-22 11:31:55 +01:00
  • 7eab063b23 Turn Analysis_Unit_Type.Lex_Env_Data into an access type Pierre-Marie de Rodat 2016-12-21 18:34:41 +01:00
  • 8d887058a9 $.AST: rename Get_Unit to Get_Unit_Internal Pierre-Marie de Rodat 2016-12-21 17:00:39 +01:00
  • 497f8cfbf5 Null the default Unit_File_Provider for analysis context constructor Pierre-Marie de Rodat 2016-12-21 16:35:30 +01:00
  • ba4121e99b Remove obsolete $.AST.List generic package and related templates Pierre-Marie de Rodat 2016-12-21 14:47:16 +01:00
  • f5daf603d8 Remove generic instantiations for AST lists Pierre-Marie de Rodat 2016-12-21 14:42:28 +01:00
  • 4ae6471718 expressions: add conversions for the upcoming all-root-class list switch Pierre-Marie de Rodat 2016-12-21 14:38:31 +01:00
  • b062b52222 AbstractVariable: add a method to turn this into a local variable Pierre-Marie de Rodat 2016-12-21 14:36:10 +01:00
  • 2d679c0536 Templates: replace get_context with a more direct ctx (CompileContext) Pierre-Marie de Rodat 2016-12-21 14:30:25 +01:00
  • d3db9af83f Fix CompiledType.should_emit_array_type processing Pierre-Marie de Rodat 2016-12-21 11:32:22 +01:00
  • 40866cdbe9 PC19-022: Add test for Match on env el Raphael Amiard 2016-12-20 18:24:24 +01:00
  • 2869df6882 PC19-022: Adapt Match.construct error check for env el types Raphael Amiard 2016-12-20 18:21:07 +01:00
  • 2c7d89fc9a PC19-022: Rename iteration variables in Match.construct Raphael Amiard 2016-12-20 18:20:37 +01:00
  • 9146385b8d PC19-022: remove assert_type cruft in Match.construct Raphael Amiard 2016-12-20 18:19:37 +01:00
  • 483836f7a4 PC19-022: Adapt Match.check_coverage to work on env el types Raphael Amiard 2016-12-20 18:17:54 +01:00
  • 8807be8c5a PC19-022: Adapt Match.prepare to work on env el types Raphael Amiard 2016-12-20 18:16:55 +01:00
  • dbe167ecea PC19-022: Generalize null expr in Match.construct Raphael Amiard 2016-12-20 18:14:16 +01:00
  • b7b7efe48f PC19-022: Add test for Cast on env el Raphael Amiard 2016-12-20 16:02:01 +01:00
  • 8fe1039b9b PC19-022: Make Cast work on env el types Raphael Amiard 2016-12-20 16:00:10 +01:00
  • 49231660cc PC19-022: Add an el_type shortcut on env el types Raphael Amiard 2016-12-20 15:59:07 +01:00
  • f85491726d PC19-022: Implement matches on env el types Raphael Amiard 2016-12-20 15:58:54 +01:00
  • 8d11eed64d PC19-022: Cast - rename astnode into dest_type Raphael Amiard 2016-12-20 15:58:39 +01:00
  • 1a2b02c796 PC19-022: Tag env element struct types Raphael Amiard 2016-12-20 15:55:47 +01:00
  • 41d0dac7da PC19-022: Correct name emission for env els Raphael Amiard 2016-12-20 15:55:02 +01:00
  • dc254a6e17 PC19-022: correct more comments Raphael Amiard 2016-12-19 18:27:11 +01:00
  • dfe62cffd8 PC19-022: Use type rt. inline class to define env el types Raphael Amiard 2016-12-19 17:57:59 +01:00
  • 55dcf93bb3 PC19-022: Correct comment Raphael Amiard 2016-12-19 17:57:25 +01:00
  • ed4fb0342c PC19-022: refactor EnvElement Raphael Amiard 2016-12-19 17:40:15 +01:00
  • 0d438b052a PC19-022: Use an empty struct for default metadata Raphael Amiard 2016-12-20 11:20:00 +01:00
  • 29fb4da8d5 PC19-022: Always name the metadata type Metadata Raphael Amiard 2016-12-20 11:19:19 +01:00
  • 8ee299f681 PC19-022: remove env_element guards Raphael Amiard 2016-12-19 17:34:54 +01:00
  • db0a8002b4 PC19-022: remove redundant env_element shortcut in CompileCtx Raphael Amiard 2016-12-19 17:33:15 +01:00
  • 84b4065abd Minor typo fix Raphael Amiard 2016-12-19 13:11:49 +01:00