duncanamps / lacogen1 Goto Github PK
View Code? Open in Web Editor NEWLaCoGen - Lazarus Compiler Generator - Version 1
Home Page: https://github.com/duncanamps/lacogen1
License: GNU General Public License v3.0
LaCoGen - Lazarus Compiler Generator - Version 1
Home Page: https://github.com/duncanamps/lacogen1
License: GNU General Public License v3.0
Need facility to include files, can be grouped in with the conditional compilation listed in issue #4.
For example:
{$INCLUDE "C:\temp\testing\myfile.inc"}
{$INCLUDE "C:\grammar\new_project\$(option).inc"}
LaCoGen uses characters and character ranges in the dictionary, e.g. 'A', '0..9', etc. and is a leftover from when 16 and 32 bit character sets were used. Now that 8 bit is the character set to use, remove the ranges for improved speed (UTF can still be used for more complex character spaces). This will mandate version 1.2 of the software as the file structures will change.
Add indent and outdent tokens to the grammar so that Python style constructs can be handled.
Add virtual terminals to the grammar.
Require better error handling on the lexer and parser, for example to show more context around the error or to define what should have been expected
Create software (additional program?) to take the .lacobj file and create code directly from it.
The XMLs are currently in one large file. Allow the option to split these out if required.
For version 1.1: In addition to the .lacobj file creation, add some code to create.pas files which contains tables, lexical analyser, parser, error handling, etc. If the original lac file is called asm6502.lac, the following files should be created:
lac_asm6502_parser.pas will contain the TLacAsm6502Parser object which can be instanced by the main program.
Allow conditional compilation using command line provided 'defines', for example:
lacogen asm6502.lac --compile --dump --define=DEBUG;FULL_VERSION
lacogen xa80.lac --compile --dump --define=PROCLIST:8080;FIRST_ROW:A
Within the software be able to act on these defines with conditional compilation:
{$IFDEF DEBUG}
<codeline> : <expression> "," <expression> # ActCodelineDebug
{$DEFINE EXTRA_INFO}
{$ELSE}
<codeline> : <expression> "," <expression> # ActCodeline
{$ENDIF}
And the use of the content of defines with
T_OPCODE = MIXED("AND")
| MIXED("BIT")
| MIXED("CCF")
:
| MIXED("SRL")
| MIXED("TST")
| MIXED("XOR")
{$IF PROC="8080"}
| MIXED("ACI")
| MIXED("ADI")
| MIXED("ANA")
{$ENDIF}
Need to implement the following:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.