MCPcopy Create free account
hub / github.com/KLayout/klayout / parse_list

Function parse_list

src/laybasic/laybasic/layParsedLayerSource.cc:778–801  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

776}
777
778static std::vector <std::pair <bool, std::string> > parse_list (tl::Extractor &ex)
779{
780 std::vector <std::pair <bool, std::string> > list;
781
782 if (ex.test ("(")) {
783
784 while (! ex.test (")")) {
785 list.push_back (parse_part (ex));
786 if (list.back () == std::pair <bool, std::string> ()) {
787 list.pop_back ();
788 ex.expect (")");
789 break;
790 }
791 }
792
793 } else {
794 list.push_back (parse_part (ex));
795 if (list.back () == std::pair <bool, std::string> ()) {
796 list.pop_back ();
797 }
798 }
799
800 return list;
801}
802
803void CellSelector::parse (tl::Extractor &ex)
804{

Callers 1

parseMethod · 0.70

Calls 6

parse_partFunction · 0.85
testMethod · 0.45
push_backMethod · 0.45
backMethod · 0.45
pop_backMethod · 0.45
expectMethod · 0.45

Tested by

no test coverage detected