Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ca51d691 authored by Josh Wu's avatar Josh Wu
Browse files

gd/parser: Separate code requires block in yacc

Bug: 203733387
Tag: #gd-refactor
Test: cert/run
Change-Id: I4973515584ac24952f367772249e7abd5fd68f5f
parent 91c70e5a
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
%{
%code requires {
  #include <iostream>
  #include <vector>
  #include <list>
@@ -6,10 +6,11 @@

  #include "declarations.h"
  #include "logging.h"
  #include "language_y.h"
  #include "field_list.h"
  #include "fields/all_fields.h"

}
%{
  #include "language_y.h"
  extern int yylex(yy::parser::semantic_type*, yy::parser::location_type*, void *);

  ParseLocation toParseLocation(yy::parser::location_type loc) {