Skip to content

Commit

Permalink
ver. 0.97
Browse files Browse the repository at this point in the history
  • Loading branch information
iigura committed Feb 17, 2024
1 parent 8f20bb9 commit 01e8698
Show file tree
Hide file tree
Showing 72 changed files with 6,454 additions and 639 deletions.
14 changes: 7 additions & 7 deletions BUILD.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
==============================================================================
Paraphrase ver. 0.96 ビルドマニュアル by 飯倉宏治 2023.3.14
Paraphrase ver. 0.97 ビルドマニュアル by 飯倉宏治 2024.2.18
==============================================================================

目次
Expand Down Expand Up @@ -99,7 +99,7 @@ Paraphrase というディレクトリが作成され、そのディレクトリ

を実行して下さい。

 無事、make が終了すると paraphrase ディレクトリの直下に para および libPP.so
 無事、make が終了すると Paraphrase ディレクトリの直下に para および libPP.so
というファイルが生成されます。これらファイルが Paraphrase の言語処理系を構成す
るファイルとなります。動作確認は本文書の「4. 動作確認」を参照して下さい。

Expand All @@ -126,14 +126,14 @@ Studio にて開きます。

 ソリューションを開くと「プロジェクトの再ターゲット」というダイアログが開く場
合があります。その場合は、Windows SDK のバージョンはできるだけ最新のものを指定
し、プラットフォームツールセットは「v142 へのアップグレード」として OK ボタンを
し、プラットフォームツールセットは「v143 へのアップグレード」として OK ボタンを
押して下さい。

 次に、各プロジェクトに追加のパッケージを追加します。Paraphrase プロジェクト
には、以下の 5 つのパッケージを NuGet を用いてインストールしておきます。
 次に、各プロジェクトに追加のパッケージを追加します。libPP プロジェクトには、
以下の 4 つのパッケージを NuGet を用いてインストールしておきます。

1) boost (ver. 1.81.0)
2) boost-vc143 (ver. 1.81.0)
1) boost (ver. 1.84.0)
2) boost-vc143 (ver. 1.84.0)
3) ICU4C_58_2 (ver. 1.0.0)
4) libgmp_vc120 (ver. 5.1.3.2)

Expand Down
23 changes: 22 additions & 1 deletion FILES.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
===============================================================================
Paraphrase ver.0.96 同梱ファイル情報 by Koji Iigura
Paraphrase ver.0.97 同梱ファイル情報 by Koji Iigura
===============================================================================

-------------------------------------------------------------------------------
Expand Down Expand Up @@ -56,6 +56,7 @@ Paraphrase
+- PolishNotation.p8e <------ 前置記法の例
+- aop.p8e <----------------- アスペクト指向プログラミングの例
+- attr.p8e <---------------- 属性を用いた単体テストの例
+- caller.p8e <-------------- ワード caller のテストプログラム
+- check-scriptFile-args.p8e コマンドライン引数の確認用
+- countPrimeMT-short.p8e <-- 1 から 1000 万までの素数を数えます
+- dumpMPmt.p8e <------------ 1 から 1000 までのメルセンヌ素数を表示します
Expand All @@ -71,10 +72,29 @@ Paraphrase
| +- test-lis.p8e <------- LisP8E テストプログラム
+- mabdelbrot.p8e <---------- シングルスレッド版マンデルブロ集合描画プログラム
+- mabdelbrotMT.p8e <-------- マルチスレッド版マンデルブロ集合描画プログラム
+- paradocs <---------------- ドキュメントシステム Paradocs 関連ディレクトリ
| +- README.txt <--------- Paradocs の状況説明
| +- contents <----------- 現在作成中のワードリファレンス用ディレクトリ
| | +- 00_intro.md <--- はじめに
| | +- 01_howToRead.md 本書の読み方
| | +- 02_paraphraseOverview.md Paraphrase 概観
| | +- 03_stack.md <--- スタック関連ワード
| | +- 04_stdout.md <-- 標準出力関連ワード
| | +- 05_arithAndMath.md 計算・数学関連ワード
| | +- 06_logical.md <- 論理計算等ワード
| | +- 07_comp.md <---- 比較演算ワード
| | +- 08_string.md <-- 文字列関連ワード
| | +- 09_array.md <--- 配列関連ワード
| +- paradocs.css <------- HTML 版用 CSS ファイル
| +- paradocs.html <------ HTML 版生成で使用するファイル
| +- paradocs.p8e <------- Paradocs 本体プログラム
| +- paradocs.tex <------- TeX 版生成で使用するファイル
| +- v097.pdconf <-------- テスト用設定ファイル
+- pass.p8e <---------------- 必ず成功するサンプルプログラム(テスト用)
+- pseudo_shebang.bat <------ Windows にて shebang を実現する例
+- shebang_example <--------- Linux, macOS においてスクリプトとして実行する例
+- test.bat <---------------- Windows 用テストドライバ
+- user-defined-deprecated.p8e AOP を利用したユーザー定義の警告表示の例
+- zdk.p8e <----------------- いわゆるズンドコキヨシ問題のプログラム
+- zdk2.p8e <---------------- 相互参照を用いたズンドコキヨシの実装例

Expand Down Expand Up @@ -139,6 +159,7 @@ paraphrase
| +- context.cpp <-------- コンテキスト(*1)実装部
| +- dictMan.cpp <-------- ワード登録(辞書管理)関連関数の実装部
| +- errorMessage.cpp <--- エラーメッセージ実装部
| +- file.cpp <----------- ファイルオブジェクト実装部
| +- inner.cpp <---------- 内部インタプリタ実装部
| +- langSys.cpp <-------- 言語システムで使用するグローバル変数の実装部
| +- optimizer.cpp <------ 最適化処理実装部
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2018-2023 Koji Iigura
Copyright (c) 2018-2024 Koji Iigura

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Paraphrase ver. 0.96
Copyright (c) 2018-2023 Koji Iigura
# Paraphrase ver. 0.97
Copyright (c) 2018-2024 Koji Iigura
Released under the MIT license
[https://opensource.org/licenses/mit-license.php](
https://opensource.org/licenses/mit-license.php)
Expand Down Expand Up @@ -60,9 +60,9 @@ Windows, Linux, MacOS に対応しています。
[https://drive.google.com/drive/folders/18c2NPG09uOakcBnqGM43bLHMD90hGxVZ](
https://drive.google.com/drive/folders/18c2NPG09uOakcBnqGM43bLHMD90hGxVZ)

Windows 版 para-0-96-win.zip
Linux 版 para-0-96-linux.tar.gz
MacOS 版 para-0-96-mac.tar.gz
Windows 版 para-0-97-win.zip
Linux 版 para-0-97-linux.tar.gz
MacOS 版 para-0-97-mac-M1.tar.gz

展開して para (Windows 版は para.exe)を実行して下さい
(同梱されるファイルについては、
Expand Down
8 changes: 4 additions & 4 deletions appx/vim/syntax/p8e.vim
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ syn match p8eNumber /\<[+-]\{-,1}\d\+\(LL\|ll\|L\|l\)\{-,1}\>/
syn match p8eNumber /\<[+-]\{-,1}0[Xx]\x\+\(LL\|ll\|L\|l\)\{-,1}\>/
syn match p8eNumber /\<[+-]\{-,1}\d\+\.\d\+\([Ee][+-]\{-,1}\d\+\)\{-,1}[df]\{-,1}\>/

syn region p8eString matchgroup=p8eQuotes start=+"+ skip=+\\\"+ end=+"+
syn region p8eString matchgroup=p8eQuotes start=+'+ skip=+\\\'+ end=+'+
syn region p8eString matchgroup=p8eQuotes start=+"+ skip=+\\\\\|\\\"+ end=+"+
syn region p8eString matchgroup=p8eQuotes start=+'+ skip=+\\\\\|\\\'+ end=+'+
syn match p8eString /\(raw\)\?<<<\_s\_.*\_s>>>\(raw\)\?/

" starndard words
Expand All @@ -43,8 +43,8 @@ syn keyword p8eStdType >int >long >big-int >float >double >big-float >bool
syn keyword p8eStdType >string >hex >symbol >array >list >assoc >word >address
syn keyword p8eStdType >int? >long? >float? >double?
syn keyword p8eStdType int? long? big-int? float? double? big-float?
syn keyword p8eStdType bool? string? array? list? assoc? invalid?
syn keyword p8eStdType @array? @list? @assoc? @invalid?
syn keyword p8eStdType bool? string? array? list? assoc? invalid? valid?
syn keyword p8eStdType @array? @list? @assoc? @invalid? @valid?
syn keyword p8eStdType type-name @type-name @type> >type is?

syn keyword p8eStringWord @empty-str? @not-empty-str?
Expand Down
10 changes: 5 additions & 5 deletions docs/README.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
<![endif]-->
</head>
<body>
<h1 id="paraphrase-ver.-0.96">Paraphrase ver. 0.96</h1>
<p>Copyright (c) 2018-2023 Koji Iigura<br />
<h1 id="paraphrase-ver.-0.97">Paraphrase ver. 0.97</h1>
<p>Copyright (c) 2018-2024 Koji Iigura<br />
Released under the MIT license<br />
<a
href="https://opensource.org/licenses/mit-license.php">https://opensource.org/licenses/mit-license.php</a></p>
Expand Down Expand Up @@ -75,9 +75,9 @@ <h2 id="マルチプラットフォーム対応">マルチプラットフォー
それぞれのプラットフォーム用のパッケージを入手して下さい。</p>
<p><a
href="https://drive.google.com/drive/folders/18c2NPG09uOakcBnqGM43bLHMD90hGxVZ">https://drive.google.com/drive/folders/18c2NPG09uOakcBnqGM43bLHMD90hGxVZ</a></p>
<p>Windows 版 para-0-96-win.zip<br />
Linux 版 para-0-96-linux.tar.gz<br />
MacOS 版 para-0-96-mac.tar.gz</p>
<p>Windows 版 para-0-97-win.zip<br />
Linux 版 para-0-97-linux.tar.gz<br />
MacOS 版 para-0-97-mac.tar.gz</p>
<p>展開して para (Windows 版は para.exe)を実行して下さい
(同梱されるファイルについては、 <a
href="http://github.com/iigura/paraphrase/blob/master/FILES.txt">FILES.txt</a>
Expand Down
6 changes: 3 additions & 3 deletions docs/ext/extAOP.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="ext.css">
<style type="text/css"> <!-- .VERSION:before{content:"0.96";} --> </style>
<style type="text/css"> <!-- .DATE:before{content:"2023.3.14";} --> </style>
<title>extLP for ver. 0.96</title>
<style type="text/css"> <!-- .VERSION:before{content:"0.97";} --> </style>
<style type="text/css"> <!-- .DATE:before{content:"2024.2.18";} --> </style>
<title>extLP for ver. 0.97</title>
</head>
<body>
<div id=main>
Expand Down
6 changes: 3 additions & 3 deletions docs/ext/extFactor.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="ext.css">
<style type="text/css"> <!-- .VERSION:before{content:"0.96";} --> </style>
<style type="text/css"> <!-- .DATE:before{content:"2023.3.14";} --> </style>
<title>extFactor for ver. 0.96</title>
<style type="text/css"> <!-- .VERSION:before{content:"0.97";} --> </style>
<style type="text/css"> <!-- .DATE:before{content:"2024.2.18";} --> </style>
<title>extFactor for ver. 0.97</title>
</head>
<body>
<div id=main>
Expand Down
8 changes: 4 additions & 4 deletions docs/ext/extLP.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="ext.css">
<style type="text/css"> <!-- .VERSION:before{content:"0.96";} --> </style>
<style type="text/css"> <!-- .DATE:before{content:"2023.3.14";} --> </style>
<title>extLP for ver. 0.96</title>
<style type="text/css"> <!-- .VERSION:before{content:"0.97";} --> </style>
<style type="text/css"> <!-- .DATE:before{content:"2024.2.18";} --> </style>
<title>extLP for ver. 0.97</title>
</head>
<body>
<div id=main>
Expand Down Expand Up @@ -76,7 +76,7 @@ <h1>extLP for ver. <span class="VERSION"></span></h1>
という結果を得ます。
</p>
<p>
本格帳辞書は、以下のコードと同等です。
本拡張辞書は、以下のコードと同等です。
<div class=example>
<code>
"&lt;!DOCTYPE" "/*" alias<br>
Expand Down
6 changes: 3 additions & 3 deletions docs/ext/extStdCode.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="ext.css">
<style type="text/css"> <!-- .VERSION:before{content:"0.96";} --> </style>
<style type="text/css"> <!-- .DATE:before{content:"2023.3.14";} --> </style>
<title>extLP for ver. 0.96</title>
<style type="text/css"> <!-- .VERSION:before{content:"0.97";} --> </style>
<style type="text/css"> <!-- .DATE:before{content:"2024.2.18";} --> </style>
<title>extLP for ver. 0.97</title>
</head>
<body>
<div id=main>
Expand Down
6 changes: 3 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="top.css">
<style type="text/css"> <!-- .VERSION:before{content:"0.96";} --> </style>
<style type="text/css"> <!-- .DATE:before{content:"2023.3.14";} --> </style>
<title>Paraphrase ドキュメント ver. 0.96</title>
<style type="text/css"> <!-- .VERSION:before{content:"0.97";} --> </style>
<style type="text/css"> <!-- .DATE:before{content:"2024.2.18";} --> </style>
<title>Paraphrase ドキュメント ver. 0.97</title>
</head>
<body>

Expand Down
6 changes: 3 additions & 3 deletions docs/para.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="top.css">
<style type="text/css"> <!-- .VERSION:before{content:"0.96";} --> </style>
<style type="text/css"> <!-- .DATE:before{content:"2023.3.14";} --> </style>
<title>Paraphrase ドキュメント ver. 0.96</title>
<style type="text/css"> <!-- .VERSION:before{content:"0.97";} --> </style>
<style type="text/css"> <!-- .DATE:before{content:"2024.2.18";} --> </style>
<title>Paraphrase ドキュメント ver. 0.97</title>
</head>
<body>
<div id=main>
Expand Down
36 changes: 15 additions & 21 deletions docs/release-notes.md
Original file line number Diff line number Diff line change
@@ -1,38 +1,32 @@
# Release Notes: Changes from version 0.95 to 0.96
# Release Notes: Changes from version 0.96 to 0.97

## Major changes
* Abolished big-float type
* Organize and redesign inter-thread communication
There are no major changes in the language system.

## Changes to existing Words
* true , false - changed to work correctly in lists
* [[=&gt; - now also supports listings with more elements than the number of cores installed
* printf - now supports multithreaded
* () - now correctly generates an empty list even in a list
* full-clone - fixed a bug that caused symbols to turn into strings
* Changes to “args” are now reflected in script arguments.

### Name change
There are no Words that have been renamed.
* fgets to @fgets
* 'var' to global-decl

## Newly added Words
* putc
* word? , @word?
* sleep
* &gt;[ , &gt;&gt;[ , &gt;[[ , &gt;&gt;[[ , &gt;[-&gt; , &gt;&gt;[-&gt; , <br>
&gt;[[-&gt; , &gt;&gt;[[-&gt; , &gt;[[=&gt; , &gt;[[=&gt; , ]= , ]&gt; , <br>
]=&gt; , ]&gt;&gt; , ]=&gt;&gt; , ]]= , ]]&gt; , ]]=&gt; , ]]&gt;&gt; , <br>
]]=&gt;&gt;
* join
* global
* caller
* word-short-name , @word-short-name
* fcopy , fexist? , fwrite , mkdir

## Obsolete Words
* &gt;big-float , big-float?
* &gt;child , &gt;parent , child&gt; , parent&gt;
* There are no obsolete Words.

## About Language Processing System 'para'
No changes.
* Error lines are now also displayed with script files.
* The list pointed to by the 'args' is now identical to the arguments to the script file.

## About the sample programs included in the package
* attr.p8e, which unit tests with attributes, is added.
* Documentation system Paradocs has been added to the samples.
* Added caller.p8e showing how to use the Word 'caller'.
* AOP-based user-defined warning display sample 'user-defined-deprecated.p8e' has been added.

## Other changes
Nothing in particular.
Expand Down
38 changes: 16 additions & 22 deletions docs/release-notes_Japanese.md
Original file line number Diff line number Diff line change
@@ -1,38 +1,32 @@
# リリースノート:バージョン 0.95 から 0.96 の変更点
# リリースノート:バージョン 0.96 から 0.97 の変更点

## 主な変更点
* 多倍長浮動小数点型 big-float の廃止
* スレッド間通信まわりの整理ならびに整備
言語システムにおける大きな変更点はありません。

## 既存のワードに対する変更点
* true , false - リスト中でも正しく機能するように変更しました
* [[=&gt; - 搭載されているコア数以上の要素を持つリストにも対応しました
* printf - マルチスレッド対応しました
* () - リスト中でも正しく空リストを生成するようにしました
* full-clone - シンボルが文字列に変化するバグを直しました

* args - args の変更がスクリプトの引数に反映するようにしました

### 名称変更
名称変更を行ったワードはありません。
* fgets を @fgets
* var を global-decl へ

## 新たに追加されたワード
* putc
* word? , @word?
* sleep
* &gt;[ , &gt;&gt;[ , &gt;[[ , &gt;&gt;[[ , &gt;[-&gt; , &gt;&gt;[-&gt; , <br>
&gt;[[-&gt; , &gt;&gt;[[-&gt; , &gt;[[=&gt; , &gt;[[=&gt; , ]= , ]&gt; , <br>
]=&gt; , ]&gt;&gt; , ]=&gt;&gt; , ]]= , ]]&gt; , ]]=&gt; , ]]&gt;&gt; , <br>
]]=&gt;&gt;
* join
* global
* caller
* word-short-name , @word-short-name
* fcopy , fexist? , fwrite , mkdir

## 廃止されたワード
* &gt;big-float , big-float?
* &gt;child , &gt;parent , child&gt; , parent&gt;
廃止されたワードはありません。

## 処理系 para について
変更はありません。
* スクリプトファイルでもエラー発生行を表示するようにしました
* args が指すリストとスクリプトファイルへの引数とを同一にしました

## 同梱されるサンプルプログラムについて
* 属性を用いてユニットテストを行う attr.p8e を同梱しました。
* ドキュメントシステム Paradocs を追加しました
* ワード caller の使い方を示す caller.p8e を追加しました
* AOP を用いたユーザー定義の警告表示サンプル user-defined-deprecated.p8e を追加しました

## その他の変更
ありません。
Expand Down
Loading

0 comments on commit 01e8698

Please sign in to comment.