-
Notifications
You must be signed in to change notification settings - Fork 2
koduki/pascaloon
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
READMEという名の言い訳。 Pascaloonは言語実装祭にて作った、RubyによるPascal風言語のインタプリタです。 習作なので実用性は無い上に、意味解析とかが未完成ですが、一応は字句解析・構文解析・評価をコンパイラコンパイラとか使わずに自前で書いているので、処理系の仕組みに興味がある人の参考にはなるかと思い公開しておきます。 基本的な構文はPascalに準じますが、if文でelseを省略できなかったり、動的スコープだったりと違う所も多いです。 Hello Worldは以下の通り。 --- program hello; begin writeln('Hello World.'); end --- 実行するためには上記のコードをhello.p等と保存して ruby interpriter.rb hello.p とすれば実行できます。
About
言語実装祭りで作ったPascal風言語のインタプリタ。習作なので実用性が無いばかりか未完成(ぉ
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published