Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » What kind of Model is used for PHP language in PDT?
What kind of Model is used for PHP language in PDT? [message #1796283] Tue, 09 October 2018 13:47 Go to next message
Axel Groß is currently offline Axel GroßFriend
Messages: 1
Registered: October 2018
Junior Member
Hi,

I am checking the feasability of deriving the PDT work for an editor for a legacy language.
What we have here is a macro basic language which embedds PHP code.

I wanted to go the xtext way but it looks like there is no antlr v4 grammar for PHP 7 available. So i am asking you what PDT uses internally - maybe we can use it.

thank you,
Axel

p.s.:
The macro language uses something along the line of
<#tagXY
	key1			=	"bla"
	key2			=	"blabla"
	#>
<h1>Funky</h1>
<?php
	// do php stuff here
?>
<#/tagXY#>
Re: What kind of Model is used for PHP language in PDT? [message #1796489 is a reply to message #1796283] Mon, 15 October 2018 08:30 Go to previous message
Dawid Pakula is currently offline Dawid PakulaFriend
Messages: 291
Registered: March 2013
Senior Member
PDT use 2 models right now:
1. Basic model compatible with WTP that allow us embed PHP inside HTML files (WTP SSE)
2. DLTK model for language specific features, but there is a plan to switch into Handly in near future.

Our parser are written in JavaCUP / JFlex.

For you more interesting might be LSP4E - LanguageProtocol support and TM4E - textmate support


Previous Topic: Problems after upgrade
Next Topic:ignoring custom tags
Goto Forum:
  


Current Time: Thu Mar 28 09:58:36 GMT 2024

Powered by FUDForum. Page generated in 0.02208 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top