Before

1-- Copyright (C) 2017-2020 Tomoyuki Fujimori <moyu@dromozoa.com>
2--
3-- This file is part of dromozoa-utf8.
4--
5-- dromozoa-utf8 is free software: you can redistribute it and/or modify
6-- it under the terms of the GNU General Public License as published by
7-- the Free Software Foundation, either version 3 of the License, or
…lines 8–288 unchanged (281 lines)

After

1-- Copyright (C) 2017-2020,2023 Tomoyuki Fujimori <moyu@dromozoa.com>
2--
3-- This file is part of dromozoa-utf8.
4--
5-- dromozoa-utf8 is free software: you can redistribute it and/or modify
6-- it under the terms of the GNU General Public License as published by
7-- the Free Software Foundation, either version 3 of the License, or
…lines 8–288 unchanged (281 lines)

Before

chunk
comment
-- "--"
comment_content " Copyright (C) 2017-2020 Tomoyuki Fujimori <moyu@dromozoa.co"...
comment
-- "--"
comment_content ""
comment
-- "--"
comment_content " This file is part of dromozoa-utf8."
comment
-- "--"
comment_content ""
comment
-- "--"
comment_content " dromozoa-utf8 is free software: you can redistribute it and"...
comment
-- "--"
comment_content " it under the terms of the GNU General Public License as pub"...
comment
-- "--"
comment_content " the Free Software Foundation, either version 3 of the Licen"...
comment
-- "--"
comment_content " (at your option) any later version."
comment
-- "--"
comment_content ""
comment
-- "--"
comment_content " dromozoa-utf8 is distributed in the hope that it will be us"...
comment
-- "--"
comment_content " but WITHOUT ANY WARRANTY; without even the implied warranty"...
comment
-- "--"
comment_content " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See th"...
comment
-- "--"
comment_content " GNU General Public License for more details."
comment
-- "--"
comment_content ""
comment
-- "--"
comment_content " You should have received a copy of the GNU General Public L"...
comment
-- "--"
comment_content " along with dromozoa-utf8. If not, see <https://www.gnu.org/"...
variable_declaration
local "local"
assignment_statement
variable_list
identifier "pure"
= "="
expression_list
function_call
identifier "require"
arguments
string
" "\""
string_content "dromozoa.utf8.pure"
" "\""
variable_declaration
local "local"
assignment_statement
variable_list
identifier "unpack"
= "="
expression_list
binary_expression
dot_index_expression
identifier "table"
. "."
identifier "unpack"
or "or"
identifier "unpack"
variable_declaration (+23 nodes collapsed)
variable_declaration (+44 nodes collapsed)
variable_declaration
local "local"
assignment_statement
variable_list
identifier "count"
= "="
expression_list
number "0"
variable_declaration
local "local"
variable_list
identifier "handle"
variable_declaration
local "local"
variable_list
identifier "expect"
if_statement (+63 nodes collapsed)
function_declaration (+82 nodes collapsed)
function_declaration (+92 nodes collapsed)
function_declaration (+241 nodes collapsed)
function_declaration (+25 nodes collapsed)
function_declaration (+596 nodes collapsed)
function_call
identifier "write"
arguments
string
" "\""
string_content
escape_sequence "\\n"
" "\""
function_call
identifier "check"
arguments
string
" "\""
string_content "charpattern"
" "\""
function_call
identifier "check"
arguments
( "("
string
" "\""
string_content "char"
" "\""
, ","
unary_expression
- "-"
number "1"
) ")"
function_call
identifier "check"
arguments
( "("
string
" "\""
string_content "char"
" "\""
, ","
number "0"
, ","
unary_expression
- "-"
number "1"
) ")"
function_call
identifier "check"
arguments
( "("
string
" "\""
string_content "char"
" "\""
, ","
number "0x10FFFF"
) ")"
comment
-- "--"
comment_content " Lua 5.4 relaxed"
comment
-- "--"
comment_content " check(\"char\", 0x110000)"
function_call
identifier "check"
arguments
( "("
string
" "\""
string_content "char"
" "\""
, ","
number "0"
, ","
number "0x10FFFF"
) ")"
comment
-- "--"
comment_content " Lua 5.4 relaxed"
comment
-- "--"
comment_content " check(\"char\", 0, 0x110000)"
function_call
identifier "check"
arguments
( "("
string
" "\""
string_content "char"
" "\""
, ","
number "0x41"
, ","
number "0x42"
, ","
number "0x43"
) ")"
function_call
identifier "check"
arguments
( "("
string
" "\""
string_content "char"
" "\""
, ","
string
" "\""
string_content "65"
" "\""
, ","
string
" "\""
string_content "0x42"
" "\""
) ")"
function_call
identifier "check"
arguments
( "("
string
" "\""
string_content "char"
" "\""
, ","
number "65.5"
) ")"
function_call
identifier "check"
arguments
( "("
string
" "\""
string_content "char"
" "\""
, ","
true "true"
) ")"
function_call
identifier "check"
arguments
( "("
string
" "\""
string_content "char"
" "\""
, ","
number "0x41"
, ","
nil "nil"
, ","
number "0x43"
) ")"
function_call
identifier "check"
arguments
( "("
string
" "\""
string_content "codes"
" "\""
, ","
function_call
dot_index_expression
identifier "string"
. "."
identifier "char"
arguments
( "("
number "0xE2"
) ")"
) ")"
function_call (+21 nodes collapsed)
function_call (+23 nodes collapsed)
function_call
identifier "check"
arguments
( "("
string
" "\""
string_content "codes"
" "\""
, ","
function_call
dot_index_expression
identifier "string"
. "."
identifier "char"
arguments
( "("
number "0xE2"
) ")"
) ")"
function_call (+21 nodes collapsed)
function_call (+23 nodes collapsed)
function_call (+21 nodes collapsed)
function_call (+23 nodes collapsed)
variable_declaration (+78 nodes collapsed)
for_statement (+150 nodes collapsed)
variable_declaration (+340 nodes collapsed)
for_statement (+291 nodes collapsed)
function_call
identifier "write"
arguments
string
" "\""
string_content
escape_sequence "\\n"
" "\""
if_statement
if "if"
identifier "handle"
then "then"
block
function_call
method_index_expression
identifier "handle"
: ":"
identifier "close"
arguments
( "("
) ")"
end "end"

After

chunk
comment
-- "--"
comment_content " Copyright (C) 2017-2020,2023 Tomoyuki Fujimori <moyu@dromoz"...
comment
-- "--"
comment_content ""
comment
-- "--"
comment_content " This file is part of dromozoa-utf8."
comment
-- "--"
comment_content ""
comment
-- "--"
comment_content " dromozoa-utf8 is free software: you can redistribute it and"...
comment
-- "--"
comment_content " it under the terms of the GNU General Public License as pub"...
comment
-- "--"
comment_content " the Free Software Foundation, either version 3 of the Licen"...
comment
-- "--"
comment_content " (at your option) any later version."
comment
-- "--"
comment_content ""
comment
-- "--"
comment_content " dromozoa-utf8 is distributed in the hope that it will be us"...
comment
-- "--"
comment_content " but WITHOUT ANY WARRANTY; without even the implied warranty"...
comment
-- "--"
comment_content " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See th"...
comment
-- "--"
comment_content " GNU General Public License for more details."
comment
-- "--"
comment_content ""
comment
-- "--"
comment_content " You should have received a copy of the GNU General Public L"...
comment
-- "--"
comment_content " along with dromozoa-utf8. If not, see <https://www.gnu.org/"...
variable_declaration
local "local"
assignment_statement
variable_list
identifier "pure"
= "="
expression_list
function_call
identifier "require"
arguments
string
" "\""
string_content "dromozoa.utf8.pure"
" "\""
variable_declaration
local "local"
assignment_statement
variable_list
identifier "unpack"
= "="
expression_list
binary_expression
dot_index_expression
identifier "table"
. "."
identifier "unpack"
or "or"
identifier "unpack"
variable_declaration (+23 nodes collapsed)
variable_declaration (+44 nodes collapsed)
variable_declaration
local "local"
assignment_statement
variable_list
identifier "count"
= "="
expression_list
number "0"
variable_declaration
local "local"
variable_list
identifier "handle"
variable_declaration
local "local"
variable_list
identifier "expect"
if_statement (+63 nodes collapsed)
function_declaration (+82 nodes collapsed)
function_declaration (+92 nodes collapsed)
function_declaration (+241 nodes collapsed)
function_declaration (+25 nodes collapsed)
function_declaration (+596 nodes collapsed)
function_call
identifier "write"
arguments
string
" "\""
string_content
escape_sequence "\\n"
" "\""
function_call
identifier "check"
arguments
string
" "\""
string_content "charpattern"
" "\""
function_call
identifier "check"
arguments
( "("
string
" "\""
string_content "char"
" "\""
, ","
unary_expression
- "-"
number "1"
) ")"
function_call
identifier "check"
arguments
( "("
string
" "\""
string_content "char"
" "\""
, ","
number "0"
, ","
unary_expression
- "-"
number "1"
) ")"
function_call
identifier "check"
arguments
( "("
string
" "\""
string_content "char"
" "\""
, ","
number "0x10FFFF"
) ")"
comment
-- "--"
comment_content " Lua 5.4 relaxed"
comment
-- "--"
comment_content " check(\"char\", 0x110000)"
function_call
identifier "check"
arguments
( "("
string
" "\""
string_content "char"
" "\""
, ","
number "0"
, ","
number "0x10FFFF"
) ")"
comment
-- "--"
comment_content " Lua 5.4 relaxed"
comment
-- "--"
comment_content " check(\"char\", 0, 0x110000)"
function_call
identifier "check"
arguments
( "("
string
" "\""
string_content "char"
" "\""
, ","
number "0x41"
, ","
number "0x42"
, ","
number "0x43"
) ")"
function_call
identifier "check"
arguments
( "("
string
" "\""
string_content "char"
" "\""
, ","
string
" "\""
string_content "65"
" "\""
, ","
string
" "\""
string_content "0x42"
" "\""
) ")"
function_call
identifier "check"
arguments
( "("
string
" "\""
string_content "char"
" "\""
, ","
number "65.5"
) ")"
function_call
identifier "check"
arguments
( "("
string
" "\""
string_content "char"
" "\""
, ","
true "true"
) ")"
function_call
identifier "check"
arguments
( "("
string
" "\""
string_content "char"
" "\""
, ","
number "0x41"
, ","
nil "nil"
, ","
number "0x43"
) ")"
function_call
identifier "check"
arguments
( "("
string
" "\""
string_content "codes"
" "\""
, ","
function_call
dot_index_expression
identifier "string"
. "."
identifier "char"
arguments
( "("
number "0xE2"
) ")"
) ")"
function_call (+21 nodes collapsed)
function_call (+23 nodes collapsed)
function_call
identifier "check"
arguments
( "("
string
" "\""
string_content "codes"
" "\""
, ","
function_call
dot_index_expression
identifier "string"
. "."
identifier "char"
arguments
( "("
number "0xE2"
) ")"
) ")"
function_call (+21 nodes collapsed)
function_call (+23 nodes collapsed)
function_call (+21 nodes collapsed)
function_call (+23 nodes collapsed)
variable_declaration (+78 nodes collapsed)
for_statement (+150 nodes collapsed)
variable_declaration (+340 nodes collapsed)
for_statement (+291 nodes collapsed)
function_call
identifier "write"
arguments
string
" "\""
string_content
escape_sequence "\\n"
" "\""
if_statement
if "if"
identifier "handle"
then "then"
block
function_call
method_index_expression
identifier "handle"
: ":"
identifier "close"
arguments
( "("
) ")"
end "end"