Build Your Own Programming Language

Build Your Own Programming Language

Clinton L. Jeffery

142,70 €
IVA incluido
Disponible
Editorial:
Packt Publishing
Año de edición:
2021
Materia
Análisis y diseño de sistemas
ISBN:
9781800204805
142,70 €
IVA incluido
Disponible

Selecciona una librería:

  • Librería Samer Atenea
  • Librería Aciertas (Toledo)
  • Kálamo Books
  • Librería Perelló (Valencia)
  • Librería Elías (Asturias)
  • Donde los libros
  • Librería Kolima (Madrid)
  • Librería Proteo (Málaga)

Written by the creator of the Unicon programming language, this book will show you how to implement programming languages to reduce the time and cost of creating applications for new or specialized areas of computingKey FeaturesReduce development time and solve pain points in your application domain by building a custom programming languageLearn how to create parsers, code generators, file readers, analyzers, and interpretersCreate an alternative to frameworks and libraries to solve domain-specific problemsBook DescriptionThe need for different types of computer languages is growing rapidly and developers prefer creating domain-specific languages for solving specific application domain problems. Building your own programming language has its advantages. It can be your antidote to the ever-increasing size and complexity of software.In this book, you’ll start with implementing the frontend of a compiler for your language, including a lexical analyzer and parser. The book covers a series of traversals of syntax trees, culminating with code generation for a bytecode virtual machine. Moving ahead, you’ll learn how domain-specific language features are often best represented by operators and functions that are built into the language, rather than library functions. We’ll conclude with how to implement garbage collection, including reference counting and mark-and-sweep garbage collection. Throughout the book, Dr. Jeffery weaves in his experience of building the Unicon programming language to give better context to the concepts where relevant examples are provided in both Unicon and Java so that you can follow the code of your choice of either a very high-level language with advanced features, or a mainstream language.By the end of this book, you’ll be able to build and deploy your own domain-specific languages, capable of compiling and running programs.What you will learnPerform requirements analysis for the new language and design language syntax and semanticsWrite lexical and context-free grammar rules for common expressions and control structuresDevelop a scanner that reads source code and generate a parser that checks syntaxBuild key data structures in a compiler and use your compiler to build a syntax-coloring code editorImplement a bytecode interpreter and run bytecode generated by your compilerWrite tree traversals that insert information into the syntax treeImplement garbage collection in your languageWho this book is forThis book is for software developers interested in the idea of inventing their own language or developing a domain-specific language. Computer science students taking compiler construction courses will also find this book highly useful as a practical guide to language implementation to supplement more theoretical textbooks. Intermediate-level knowledge and experience working with a high-level language such as Java or the C++ language are expected to help you get the most out of this book.Table of ContentsWhy Build Another Programming LanguageProgramming Language DesignScanning Source CodeParsingSyntax TreesSymbol TablesChecking Base TypesChecking Types on Arrays, Method Calls, and Structure AccessesIntermediate Code GenerationSyntax Cloning in an IDEBytecode InterpretersGenerating BytecodeNative Code GenerationImplementing Operators and Built-In FunctionsDomain Control StructuresGarbage CollectionFinal ThoughtsAppendix A - Unicon Essentials

Artículos relacionados

  • Innovations in XML Applications and Metadata Management
    As new concepts such as virtualization, cloud computing, and web applications continue to emerge, XML has begun to assume the role as the universal language for communication among contrasting systems that grow throughout the internet. Innovations in XML Applications and Metadata Management: Advancing Technologies addresses the functionality between XML and its related technolo...
  • THEORY AND PRACTICE OF COMPUTATION
    MASAYUKI NUMAO JAIME SHIN-YA NISHIZAKI / NISHIZAKI SHIN-YA
     This is the proceedings of the Third Workshop on Computing: Theory and Practice, WCTP 2013 devoted to theoretical and practical approaches to computation. This workshop was organized by four top universities in Japan and the Philippines: Tokyo Institute of Technology, Osaka University, University of the Philippines — Diliman, and De La Salle University. The proceedings provide...
  • React 16 Tooling
    Adam Boduch
    ...
    Disponible

    69,99 €

  • HP Certified Systems Administrator (2nd Edition)
    Asghar Ghori
    Like the first edition of this book, the second edition also covers three main objectives ¿ to provide a comprehensive resource to individuals, including novice, IT/Non-HP-UX administrators, and HP-UX administrators who intend to take the new HP Certified Systems Administrator exam HP0-095 and pass it; to provide a quick and valuable on-the-job resource to HP-UX administrators,...
    Disponible

    58,77 €

  • Build your own Programming Language - Second Edition
    Clinton L. Jeffery / Imran Ahmad
    Learn to design your own programming language in a hands-on way by building compilers, using preprocessors, transpilers, and more, in this fully-refreshed second edition, written by the creator of the Unicon programming language.Purchase of the print or Kindle book includes a free PDF eBookKey Features- Takes a hands-on approach; learn by building the Jzero language, a subset o...
    Disponible

    74,14 €

  • Hands-On Unity Game Development - Fourth Edition
    Juan Gabriel Gomila Salas / Nicolas Alejandro Borromeo
    Unlock game development mastery with Unity 2023! This book takes you from conception to publication, equipping you with the key tools and techniques you need to bring your gaming vision to life.Key FeaturesLearn the fundamentals of Unity 2023 and create your dream gameExplore the world of augmented reality (AR) to create captivating mobile gamesPropel game performance and playe...
    Disponible

    73,58 €

Otros libros del autor