Comments (1)
OK, I started to play with this idea but it isn't as simple as I hoped...
- Here's an example commit that gets rid of all ifdef stuff (I mostly deleted but commented a few things) ericoporto@813a186
- Also here's simply allowing the preprocessor to keep the comments: 35e282c
Now for the issues...
It looks like there is some reliance on the character index in the original script, between the autocomplete and scintilla. Additionally, the define macros in the AutoComplete only holds the name of the macro and not their values too - say you would get all imported headers to get the defines from their autocomplete data to then add to the macro definitions of the preprocessor so you can run the preprocessor and the autocomplete on top of it... It won't be as simple.
There is also a GetLocalVariableDeclarationsFromScriptExtract
which you want to get the preprocessor to run too (I think?) but I don't know how yet.
It seems that doing this requires having some way to translate back and forward the character position between the original script as in the scintilla document and an in-memory preprocessed version of it, but this will then add a new layer of bugs. I wonder if there is a way to instead of using character ref use just line number, which then could match between both the non-preprocessed and the preprocessed version.
from ags.
Related Issues (20)
- Debugger: support step-over and step-out commands HOT 3
- Engine: Rendering graphical glitch HOT 9
- AGS 4: Script API: add "split options" for String.Split method HOT 6
- Deprecate 'function' keyword HOT 4
- Expand on_mouse_click callback parameters with click position
- Editor: having multiple project folders which names are different only in letter case breaks the item drag-n-drop HOT 1
- Editor: an option that disables panel dragging and un-docking
- Editor: restore document panes when resetting a layout
- Preprocessor gets infinite loop meeting a non-latin unicode char in script HOT 3
- Typos in DistanceBetween routine cause wrong calculation HOT 3
- Engine: Windows freezes on Alt+Tab for a specific player HOT 17
- Script API: add "startIndex" parameter to String.IndexOf HOT 26
- Editor: Ctrl+C / Ctrl+V key shortcuts do not work in GUI editor HOT 1
- Editor and Engine: Make it easier to use the project prerequisites (SDL, Ogg, etc) HOT 7
- Feat. req. Pre 2.5 version games support (DOS, 3.11) for Windows runtime engine HOT 1
- AGS 4: remove 16-bit game color depth HOT 2
- Editor: batch-resave all project rooms in the latest format HOT 1
- AGS 4: in Script API change default values of "caseSensitive" parameters to "true"
- [AGS 4.00.00.07] Sierra style template and Tumbleweed template don't work HOT 4
- Support rasterizing the Room viewport to a dynamic sprite HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ags.