Ignore:
Timestamp:
Apr 5, 2019, 9:26:53 PM (5 years ago)
Author:
coas-nagasima
Message:

mbed関連を更新
シリアルドライバをmbedのHALを使うよう変更
ファイルディスクリプタの処理を更新

File:
1 edited

Legend:

Unmodified
Added
Removed
  • asp3_tinet_ecnl_arm/trunk/asp3_dcre/tecsgen/tecslib/core/bnf.y.rb

    r352 r374  
    44#      Generator for TOPPERS Embedded Component System
    55
    6 #   Copyright (C) 2008-2016 by TOPPERS Project
     6#   Copyright (C) 2008-2018 by TOPPERS Project
    77#--
    88#   上記著作権者は,以下の(1)~(4)の条件を満たす場合に限り,本ソフトウェ
     
    379379                {
    380380                        # tag が無い場合、内部名を与える
    381                         result = StructType.new( :"$TAG_#{@@no_struct_tag_num}" )
     381                        result = StructType.new( :"TAG__#{@@no_struct_tag_num}__" )
    382382                        @@no_struct_tag_num += 1
    383383                        StructType.set_define( true )
     
    800800
    801801region_name_list
    802         : IDENTIFIER
    803                 {       result = [val[0].val]           }
    804         | region_name_list ',' IDENTIFIER
    805                 {       result << val[2].val            }
     802        : namespace_identifier
     803                {       result = [val[0]]               }
     804        | region_name_list ',' namespace_identifier
     805                {       result << val[2]                }
    806806
    807807const_statement
     
    18071807                  string += line
    18081808                  # この位置では 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"
    18101810                  @@n_error += 1
    18111811                end
     
    18481848                  b_in_string = true
    18491849                  # この位置では 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"
    18511851                  @@n_error += 1
    18521852                # 山括弧で囲まれた文字列
    1853                 when /\A<[0-9A-Za-z_\. \/]+>/   # AB: angle bracke
     1853                # when /\A<[0-9A-Za-z_\. \/]+>/   # AB: angle bracke
     1854                when /\A<(?:[^>\\]|\\.)*>/   # これはうまく行くようだ
    18541855                  @q << [:AB_STRING_LITERAL, Token.new($&, file, lineno, col)]
    18551856                # 行コメント
     
    19811982      end
    19821983      if locale then
    1983         Console.puts "error: #{locale[0]}: line #{locale[1]} #{msg}"
     1984        Console.puts "#{locale[0]}:#{locale[1]}:#{locale[2]}: error: #{msg}"
    19841985      else
    19851986        Console.puts "error: #{msg}"
     
    20142015      end
    20152016      if locale then
    2016         Console.puts "warning: #{locale[0]}: line #{locale[1]} #{msg}"
     2017        Console.puts "#{locale[0]}:#{locale[1]}:#{locale[2]}: warning: #{msg}"
    20172018      else
    20182019        Console.puts "warning: #{msg}"
     
    20472048      end
    20482049      if locale then
    2049         Console.puts "info: #{locale[0]}: line #{locale[1]} #{msg}"
     2050        Console.puts "#{locale[0]}:#{locale[1]}:#{locale[2]}: info: #{msg}"
    20502051      else
    20512052        Console.puts "info: #{msg}"
Note: See TracChangeset for help on using the changeset viewer.