SlideShare a Scribd company logo
パーサコンビネータを使っ
     てペログラム言語コンパイ
      ラを作ってみた(仮)
               @mtgto
11   12   10
11   12   10
@mtgto

                 D

                        iPhone

               Scala             11/9

               OCaml

11   12   10
http://pero.510314.com/



11   12   10
http://nlab.itmedia.co.jp/nl/articles/1111/12/
                               news012.html
11   12   10
Hello world
           あずにゃんペロペロあずにゃんあずにゃんペロペロあずにゃんペロペロあずにゃんあずにゃんペロ
           ペロペロペロペロペロペロペロあずにゃんペロあずにゃんあずにゃんペロあずにゃんペロペロあずにゃん
           ペロペロペロペロペロペロペロペロあずにゃんペロあずにゃんあずにゃんペロあずにゃんペロペロあず
           にゃんペロペロペロペロペロペロペロペロあずにゃんペロあずにゃんあずにゃんペロあずにゃんペロペ
           ロあずにゃんペロペロペロペロペロペロペロペロあずにゃんペロあずにゃんあずにゃんペロあずにゃん
           ペロペロあずにゃんペロペロペロペロペロペロペロペロあずにゃんペロあずにゃんあずにゃんペロあ
           ずにゃんペロペロあずにゃんペロペロペロペロペロペロペロあずにゃんペロあずにゃんあずにゃんペロ
           あずにゃんペロペロあずにゃんペロペロペロペロペロペロペロあずにゃんペロあずにゃんあずにゃんペロ
           あずにゃんペロペロあずにゃんペロペロペロペロペロペロペロペロあずにゃんペロあずにゃんあず
           にゃんペロあずにゃんペロペロあずにゃんペロペロペロペロペロペロペロペロあずにゃんペロあず
           にゃんあずにゃんペロあずにゃんペロペロあずにゃんペロペロペロペロペロペロペロペロあずにゃんペ
           ロあずにゃんあずにゃんペロあずにゃんペロペロあずにゃんペロペロペロペロペロペロペロペロあず
           にゃんペロあずにゃんあずにゃんペロあずにゃんペロペロあずにゃんペロペロペロペロペロペロペロペロ
           あずにゃんペロあずにゃんあずにゃんペロあずにゃんペロペロあずにゃんペロペロペロペロペロペロペロ
           あずにゃんペロあずにゃんあずにゃんペロあずにゃんペロペロ


                                     “Hello, world!”
11   12   10
Whitespace

                            push, pop, swap, dup)




11   12   10
Hello World

               ‘H’




11   12   10
def fib(n) {
             if (n < 2) {
                return 1;
             }
             return fib(n-1) + fib(n-2);
           }

           var a = readInt();
           printInt fib(a);


11   12   10
1996




11   12   10
http://pero.510314.com/
               http://localhost:8080/



11   12   10
sbt                   ScalaTest




               Scalatra + Jetty

                     Scala   10   1000

11   12   10
11   12   10
(^o^)




11   12   10

More Related Content

Recently uploaded

2024年5月25日Serverless Meetup大阪 アプリケーションをどこで動かすべきなのか.pptx
2024年5月25日Serverless Meetup大阪 アプリケーションをどこで動かすべきなのか.pptx2024年5月25日Serverless Meetup大阪 アプリケーションをどこで動かすべきなのか.pptx
2024年5月25日Serverless Meetup大阪 アプリケーションをどこで動かすべきなのか.pptx
ssuserbefd24
 

Recently uploaded (10)

論文紹介: Offline Q-Learning on diverse Multi-Task data both scales and generalizes
論文紹介: Offline Q-Learning on diverse Multi-Task data both scales and generalizes論文紹介: Offline Q-Learning on diverse Multi-Task data both scales and generalizes
論文紹介: Offline Q-Learning on diverse Multi-Task data both scales and generalizes
 
20240523_IoTLT_vol111_kitazaki_v1___.pdf
20240523_IoTLT_vol111_kitazaki_v1___.pdf20240523_IoTLT_vol111_kitazaki_v1___.pdf
20240523_IoTLT_vol111_kitazaki_v1___.pdf
 
LoRaWAN 4チャンネル電流センサー・コンバーター CS01-LB 日本語マニュアル
LoRaWAN 4チャンネル電流センサー・コンバーター CS01-LB 日本語マニュアルLoRaWAN 4チャンネル電流センサー・コンバーター CS01-LB 日本語マニュアル
LoRaWAN 4チャンネル電流センサー・コンバーター CS01-LB 日本語マニュアル
 
MPAなWebフレームワーク、Astroの紹介 (その2) 2024/05/24の勉強会で発表されたものです。
MPAなWebフレームワーク、Astroの紹介 (その2) 2024/05/24の勉強会で発表されたものです。MPAなWebフレームワーク、Astroの紹介 (その2) 2024/05/24の勉強会で発表されたものです。
MPAなWebフレームワーク、Astroの紹介 (その2) 2024/05/24の勉強会で発表されたものです。
 
Amazon Cognitoで実装するパスキー (Security-JAWS【第33回】 勉強会)
Amazon Cognitoで実装するパスキー (Security-JAWS【第33回】 勉強会)Amazon Cognitoで実装するパスキー (Security-JAWS【第33回】 勉強会)
Amazon Cognitoで実装するパスキー (Security-JAWS【第33回】 勉強会)
 
論文紹介: Exploiting semantic segmentation to boost reinforcement learning in vid...
論文紹介: Exploiting semantic segmentation to boost reinforcement learning in vid...論文紹介: Exploiting semantic segmentation to boost reinforcement learning in vid...
論文紹介: Exploiting semantic segmentation to boost reinforcement learning in vid...
 
2024年度_サイバーエージェント_新卒研修「データベースの歴史」.pptx
2024年度_サイバーエージェント_新卒研修「データベースの歴史」.pptx2024年度_サイバーエージェント_新卒研修「データベースの歴史」.pptx
2024年度_サイバーエージェント_新卒研修「データベースの歴史」.pptx
 
2024年5月25日Serverless Meetup大阪 アプリケーションをどこで動かすべきなのか.pptx
2024年5月25日Serverless Meetup大阪 アプリケーションをどこで動かすべきなのか.pptx2024年5月25日Serverless Meetup大阪 アプリケーションをどこで動かすべきなのか.pptx
2024年5月25日Serverless Meetup大阪 アプリケーションをどこで動かすべきなのか.pptx
 
【AI論文解説】Consistency ModelとRectified Flow
【AI論文解説】Consistency ModelとRectified Flow【AI論文解説】Consistency ModelとRectified Flow
【AI論文解説】Consistency ModelとRectified Flow
 
YugabyteDB適用に向けた取り組みと隠れた魅力 (DSS Asia 2024 発表資料)
YugabyteDB適用に向けた取り組みと隠れた魅力 (DSS Asia 2024 発表資料)YugabyteDB適用に向けた取り組みと隠れた魅力 (DSS Asia 2024 発表資料)
YugabyteDB適用に向けた取り組みと隠れた魅力 (DSS Asia 2024 発表資料)
 

Featured

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Featured (20)

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 

パーサコンビネータを使ってペログラム言語コンパイラを作ってみた

  • 1. パーサコンビネータを使っ てペログラム言語コンパイ ラを作ってみた(仮) @mtgto 11 12 10
  • 2. 11 12 10
  • 3. @mtgto D iPhone Scala 11/9 OCaml 11 12 10
  • 6. Hello world あずにゃんペロペロあずにゃんあずにゃんペロペロあずにゃんペロペロあずにゃんあずにゃんペロ ペロペロペロペロペロペロペロあずにゃんペロあずにゃんあずにゃんペロあずにゃんペロペロあずにゃん ペロペロペロペロペロペロペロペロあずにゃんペロあずにゃんあずにゃんペロあずにゃんペロペロあず にゃんペロペロペロペロペロペロペロペロあずにゃんペロあずにゃんあずにゃんペロあずにゃんペロペ ロあずにゃんペロペロペロペロペロペロペロペロあずにゃんペロあずにゃんあずにゃんペロあずにゃん ペロペロあずにゃんペロペロペロペロペロペロペロペロあずにゃんペロあずにゃんあずにゃんペロあ ずにゃんペロペロあずにゃんペロペロペロペロペロペロペロあずにゃんペロあずにゃんあずにゃんペロ あずにゃんペロペロあずにゃんペロペロペロペロペロペロペロあずにゃんペロあずにゃんあずにゃんペロ あずにゃんペロペロあずにゃんペロペロペロペロペロペロペロペロあずにゃんペロあずにゃんあず にゃんペロあずにゃんペロペロあずにゃんペロペロペロペロペロペロペロペロあずにゃんペロあず にゃんあずにゃんペロあずにゃんペロペロあずにゃんペロペロペロペロペロペロペロペロあずにゃんペ ロあずにゃんあずにゃんペロあずにゃんペロペロあずにゃんペロペロペロペロペロペロペロペロあず にゃんペロあずにゃんあずにゃんペロあずにゃんペロペロあずにゃんペロペロペロペロペロペロペロペロ あずにゃんペロあずにゃんあずにゃんペロあずにゃんペロペロあずにゃんペロペロペロペロペロペロペロ あずにゃんペロあずにゃんあずにゃんペロあずにゃんペロペロ “Hello, world!” 11 12 10
  • 7. Whitespace push, pop, swap, dup) 11 12 10
  • 8. Hello World ‘H’ 11 12 10
  • 9. def fib(n) { if (n < 2) { return 1; } return fib(n-1) + fib(n-2); } var a = readInt(); printInt fib(a); 11 12 10
  • 10. 1996 11 12 10
  • 11. http://pero.510314.com/ http://localhost:8080/ 11 12 10
  • 12. sbt ScalaTest Scalatra + Jetty Scala 10 1000 11 12 10
  • 13. 11 12 10
  • 14. (^o^) 11 12 10