Changeset 290990 in webkit for trunk/Source/JavaScriptCore/offlineasm/parser.rb
- Timestamp:
- Mar 8, 2022, 7:37:17 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/offlineasm/parser.rb
r290975 r290990 261 261 262 262 class Parser 263 def initialize(data, fileName, options , sources=nil)263 def initialize(data, fileName, options) 264 264 @tokens = lex(data, fileName) 265 265 @idx = 0 … … 269 269 @buildProductsDirectory = ENV['BUILT_PRODUCTS_DIR']; 270 270 @options = options 271 @sources = sources272 271 end 273 272 … … 845 844 fileExists = File.exists?(fileName) 846 845 raise "File not found: #{fileName}" if not fileExists and not isOptional 847 list << parse(fileName, @options , @sources) if fileExists846 list << parse(fileName, @options) if fileExists 848 847 else 849 848 parseError "Expecting terminal #{final} #{comment}" … … 902 901 end 903 902 904 def parseData(data, fileName, options , sources)905 parser = Parser.new(data, SourceFile.new(fileName), options , sources)903 def parseData(data, fileName, options) 904 parser = Parser.new(data, SourceFile.new(fileName), options) 906 905 parser.parseSequence(nil, "") 907 906 end 908 907 909 def parse(fileName, options, sources=nil) 910 sources << fileName if sources 911 parseData(readTextFile(fileName), fileName, options, sources) 908 def parse(fileName, options) 909 parseData(readTextFile(fileName), fileName, options) 912 910 end 913 911
Note:
See TracChangeset
for help on using the changeset viewer.