مشاركة مميزة
Show HN: PuffinBASIC – A cross-platform modern BASIC interpreter written in Java https://ift.tt/34tjVQM
- Get link
- X
- Other Apps
Show HN: PuffinBASIC – A cross-platform modern BASIC interpreter written in Java GitHub: https://ift.tt/2EumcjJ BASIC (Beginners' All-purpose Symbolic Instruction Code) is a general-purpose high-level language from the 1960s. PuffinBASIC is an implementation of the BASIC language specification. PuffinBASIC conforms most closely to GWBASIC. The purpose of this implementation is to learn how to write interpreters and resurrect an old programming language to work in modern ecosystem. The interpreter is evolving fast and in near future, I wish to apply modern interpreter building techniques to it. How it works? 1. PuffinBASIC's grammar is defined using antlr4. 2. At runtime, the user source code is parsed using antlr4 lexer+parser. 3. After parsing, an intermediate representation (IR) of the source code is generated. A symbol table keeps track of variables, scalars, arrays, etc. objects. 4. A runtime, processes the IR instructions and executes them. Performance PuffinBASIC is an interpreter, and it should not be expected to have very good performance characteristics. Certain operations such as PRINT USING, INPUT, etc. are not optimized for performance. I have not benchmarked PuffinBASIC primitives. That being said, we have written games with graphics in PuffinBASIC is work very well. TESSEL - A 2D Tile Game written in PuffinBASIC Source: https://ift.tt/34yIM5W... Link to YouTube video demo: https://youtu.be/L8xkM-g3Zms Memory PuffinBASIC runs within a JVM and can use as much memory as available for the JVM process. Compatibility PuffinBASIC is mostly compatible with Microsoft's GWBASIC. Graphics is supported using Java 2D graphics. PuffinBASIC will not support assembly instructions. Data Types PuffinBASIC has extended BASIC types and supports Int32, Int4, Float32, Float64, and String. Reference: https://ift.tt/2EumcjJ August 24, 2020 at 10:54PM
- Get link
- X
- Other Apps
Popular posts from this blog
How do you build your body in 1 week?
How do you build your body in 1 week? Ready to see real changes in just seven days? This guide shows how to kick start your body's muscle development . You'll learn about targeted workouts, smart nutrition, and wellness habits. Even in a week, small adjustments can spark noticeable improvements in strength and energy. Edit Full screen View original Delete Body health This plan helps lay the groundwork for lasting progress by focusing on exercise routines, meal planning, and rest. Every step is designed to maximize your body’s potential in a short time frame. Key Takeaways Body...
استفتاء - A REFERNDUM.
استفتاء . ******* استفتاء حيران ... العقل أم الجنان ؟.. ألمس نار الحنان .. وتحيط بكل جانب .. بأدق ما في الزوايا .. تسكن مني الحنايا.. تدعو والقلب راغب .. يملأ حولي المكان .. ويدق مثل الكمان .. فتفيض فيها الحِسان .. أتُراها لا تُبالي ؟؟.. أتحس حقا بِبالي ؟؟.. أرفض منها العناد .. فيعاتبني الفؤاد .. ويواسيني خيالي .. ما جدوى أن تُحاسب ؟.. تبغي مثلي الأمان .. إذّ يجمعنا أوان .. لا نخشاه الزمان .. وتقلبات الليالي .. أبلغ منها منالي .. وتُكللنا مواكب .. وتنال مني كتاب .. لِتُوَحدُنا رواية .. وتُصورُنا مرايا .. ونظل في كل آن .. نجمان يسبحان .. ويُقِرُنا الاثنان .. العقلُ والجِنان . بقلمي السيد أحمد إبراهيم 16\11\1994 ترجمة قصيدة استفتاء. A referendum. ******* Wondered referendum ... The mind or the heavens? Touch the fondness of fire. Surrounded by each side. As exact in the corners. Live in all my curves. Invites the heart wants. Fill around the place. Beats like a violin. It is overflowing with grace. is she Don't care?? It fell off my mind ???. I reject such stubbornness. Then m...
H. Welton Flynn: A Pioneer in Public Service
H. Welton Flynn: A Pioneer in Public Service By Jeremy Menzies This February for Black History Month we're highlighting one of San Francisco's most important figures in transportation, H. Welton Flynn. Flynn is best known for his key leadership at the SF Public Utilities Commission and as the inaugural chairman of the SFMTA Board of Directors. Mr. Flynn was the first African American appointed to a city commission and served the longest term of any commissioner in San Francisco’s history. He served under six different mayors, being elected to the office of President or Chairman more than a dozen times. Welton Flynn in 1978 during the inaugural run of Muni light rail in the Market Street Subway. Flynn’s leadership on the Public Utilities Commission was crucial during this era of change and adoption of new technology in San Francisco transit. Flynn's long tenure in transit began with his appointment to the Public Utilities Commission, which oversaw Muni operations, in 19...
Comments
Post a Comment