Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support c++03 #58

Merged
merged 3 commits into from Jan 2, 2022
Merged

Support c++03 #58

merged 3 commits into from Jan 2, 2022

Conversation

414owen
Copy link
Contributor

@414owen 414owen commented Jan 2, 2022

This increases portability. See #34 (comment).
@tek this should be ready to merge.

This compiles with no output with g++ -Wall -std=c++03 -c -o out.o src/scanner.cc.
I've tested the changes with tree-sitter (my compiler uses c++14 by default), but not with an older compiler.

@wenkokke this should remove the need for most of the web-tree-sitter patch, can you give us an update on that?
(Sorry, I would compile web-tree-sitter et al. myself, but unless there's a nix derivation, doing so is difficult on my machine)

@tek tek merged commit b6849c1 into tree-sitter:master Jan 2, 2022
@wenkokke
Copy link
Contributor

wenkokke commented Jan 2, 2022

@414owen It still needs __ZNSt3__25ctypeIcE2idE, which @maxbrunsfeld mentioned is "needed because of the use of iostream for logging." If you could remove that, that would be huge!

wenkokke added a commit to wenkokke/fork4pr-tree-sitter-haskell that referenced this pull request Jan 2, 2022
@wenkokke wenkokke mentioned this pull request Jan 2, 2022
@414owen
Copy link
Contributor Author

414owen commented Jan 2, 2022

If you could remove that, that would be huge!

I have a branch that will definitely remove that: https://github.com/414owen/tree-sitter-haskell/tree/pure-c

but it has a kind of infinite-loop type bug at the moment :)

wenkokke added a commit to wenkokke/fork4pr-tree-sitter-haskell that referenced this pull request Jan 2, 2022
tek pushed a commit that referenced this pull request Jan 3, 2022
wenkokke added a commit to wenkokke/fork4pr-tree-sitter-haskell that referenced this pull request Jan 3, 2022
* tree-sitter-master:
  Removed wasm test to get working ci
  Make node stricter
  Remove cache instructions for node
  Fix wasm tests locally
  Made parse-examples quieter
  Build web-tree-sitter with --debug
  Don't run wasm tests via npm
  Ensure web-tree-sitter is patched, set CC, name tasks
  Install emscripten on macOS
  Add emscripten install
  Added WASM tests
  Minor name change
  Fix test name
  Fix CI
  Fix bug in branch selection
  Add macOS in CI, remove old info from README
  Convert scanner to C for great good (~˘▾˘)~ (tree-sitter#62)
  Update patch after tree-sitter#58 (tree-sitter#60)
tek pushed a commit that referenced this pull request Jan 3, 2022
* Add macOS in CI, remove old info from README

* Fix bug in branch selection

* Fix CI

* Fix test name

* Minor name change

* Added WASM tests

* Add emscripten install

* Install emscripten on macOS

* Ensure web-tree-sitter is patched, set CC, name tasks

* Don't run wasm tests via npm

* Build web-tree-sitter with --debug

* Update patch after #58

* Convert scanner to C for great good (~˘▾˘)~ (#62)

* Made parse-examples quieter

* Fix wasm tests locally

* Remove cache instructions for node

* Make node stricter

* Removed wasm test to get working ci

* Add macOS in CI, remove old info from README

* Fix bug in branch selection

* Fix CI

* Fix test name

* Minor name change

* Added WASM tests

* Add emscripten install

* Install emscripten on macOS

* Ensure web-tree-sitter is patched, set CC, name tasks

* Don't run wasm tests via npm

* Build web-tree-sitter with --debug

* Made parse-examples quieter

* Fix wasm tests locally

* Remove cache instructions for node

* Make node stricter

* Removed wasm test to get working ci

* Removed additional documentation regarding NVIM builds; fixed build badge in README

Co-authored-by: Owen Shepherd <owen@owen.cafe>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants