- Timestamp:
- Apr 5, 2019, 9:26:53 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
asp3_tinet_ecnl_rx/trunk/asp3_dcre/tecsgen/tecslib/core/bnf.y.rb
r359 r374 4 4 # Generator for TOPPERS Embedded Component System 5 5 # 6 # Copyright (C) 2008-201 6by TOPPERS Project6 # Copyright (C) 2008-2018 by TOPPERS Project 7 7 #-- 8 8 # 上記著作権者は,以下の(1)~(4)の条件を満たす場合に限り,本ソフトウェ … … 379 379 { 380 380 # tag が無い場合、内部名を与える 381 result = StructType.new( :" $TAG_#{@@no_struct_tag_num}" )381 result = StructType.new( :"TAG__#{@@no_struct_tag_num}__" ) 382 382 @@no_struct_tag_num += 1 383 383 StructType.set_define( true ) … … 800 800 801 801 region_name_list 802 : IDENTIFIER803 { result = [val[0] .val] }804 | region_name_list ',' IDENTIFIER805 { result << val[2] .val}802 : namespace_identifier 803 { result = [val[0]] } 804 | region_name_list ',' namespace_identifier 805 { result << val[2] } 806 806 807 807 const_statement … … 1807 1807 string += line 1808 1808 # この位置では error メソッドは使えない (token 読出し前) 1809 puts " error: #{file} line #{lineno}: string literal has newline without escape"1809 puts "#{file}:#{lineno}:#{col}: error: string literal has newline without escape" 1810 1810 @@n_error += 1 1811 1811 end … … 1848 1848 b_in_string = true 1849 1849 # この位置では error メソッドは使えない (token 読出し前) # mikan cdl_error ではない 1850 puts " error: #{file} line #{lineno}: string literal has newline without escape"1850 puts "#{file}:#{lineno}:#{col}: error: string literal has newline without escape" 1851 1851 @@n_error += 1 1852 1852 # 山括弧で囲まれた文字列 1853 when /\A<[0-9A-Za-z_\. \/]+>/ # AB: angle bracke 1853 # when /\A<[0-9A-Za-z_\. \/]+>/ # AB: angle bracke 1854 when /\A<(?:[^>\\]|\\.)*>/ # これはうまく行くようだ 1854 1855 @q << [:AB_STRING_LITERAL, Token.new($&, file, lineno, col)] 1855 1856 # 行コメント … … 1981 1982 end 1982 1983 if locale then 1983 Console.puts " error: #{locale[0]}: line #{locale[1]}#{msg}"1984 Console.puts "#{locale[0]}:#{locale[1]}:#{locale[2]}: error: #{msg}" 1984 1985 else 1985 1986 Console.puts "error: #{msg}" … … 2014 2015 end 2015 2016 if locale then 2016 Console.puts " warning: #{locale[0]}: line #{locale[1]}#{msg}"2017 Console.puts "#{locale[0]}:#{locale[1]}:#{locale[2]}: warning: #{msg}" 2017 2018 else 2018 2019 Console.puts "warning: #{msg}" … … 2047 2048 end 2048 2049 if locale then 2049 Console.puts " info: #{locale[0]}: line #{locale[1]}#{msg}"2050 Console.puts "#{locale[0]}:#{locale[1]}:#{locale[2]}: info: #{msg}" 2050 2051 else 2051 2052 Console.puts "info: #{msg}"
Note:
See TracChangeset
for help on using the changeset viewer.